Commit bdd119e6 authored by ahb-ufz's avatar ahb-ufz

relative paths for input

parent 969d032b
Pipeline #39803 failed with stages
in 23 seconds
...@@ -104,13 +104,50 @@ if EMAIL != "": ...@@ -104,13 +104,50 @@ if EMAIL != "":
print("Your email address is not valid, you will not receive notifications.") print("Your email address is not valid, you will not receive notifications.")
# input # input
MG = config['raws']['Metagenomics'].split() if config['raws']['Metagenomics']:
MT = config['raws']['Metatranscriptomics'].split() MG = [os.path.expandvars(x) if os.path.isabs(os.path.expandvars(x)) else os.getcwd() + "/" + os.path.expandvars(x) for x in config['raws']['Metagenomics'].split()]
LONG = config['raws']['LongReads'] else:
CONTIGS = config['raws']['Contigs'] MG = config['raws']['Metagenomics']
MGaln = config['raws']['Alignment_metagenomics'] if config['raws']['Metatranscriptomics']:
MTaln = config['raws']['Alignment_metatranscriptomics'] MT = [os.path.expandvars(x) if os.path.isabs(os.path.expandvars(x)) else os.getcwd() + "/" + os.path.expandvars(x) for x in config['raws']['Metatranscriptomics'].split()]
ANN = config['raws']['Gff'] else:
MT = config['raws']['Metatranscriptomics']
if config['raws']['LongReads']:
if os.path.isabs(os.path.expandvars(config['raws']['LongReads'])):
LONG = os.path.expandvars(config['raws']['LongReads'])
else:
LONG = os.getcwd() + "/" + os.path.expandvars(config['raws']['LongReads'])
else:
LONG = config['raws']['LongReads']
if config['raws']['Contigs']:
if os.path.isabs(os.path.expandvars(config['raws']['Contigs'])):
CONTIGS = os.path.expandvars(config['raws']['Contigs'])
else:
CONTIGS = os.getcwd() + "/" + os.path.expandvars(config['raws']['Contigs'])
else:
CONTIGS = config['raws']['Contigs']
if config['raws']['Alignment_metagenomics']:
if os.path.isabs(os.path.expandvars(config['raws']['Alignment_metagenomics'])):
MGaln = os.path.expandvars(config['raws']['Alignment_metagenomics'])
else:
MGaln = os.getcwd() + "/" + os.path.expandvars(config['raws']['Alignment_metagenomics'])
else:
MGaln = config['raws']['Alignment_metagenomics']
if config['raws']['Alignment_metatranscriptomics']:
if os.path.isabs(os.path.expandvars(config['raws']['Alignment_metatranscriptomics'])):
MTaln = os.path.expandvars(config['raws']['Alignment_metatranscriptomics'])
else:
MTaln = os.getcwd() + "/" + os.path.expandvars(config['raws']['Alignment_metatranscriptomics'])
else:
MTaln = config['raws']['']
if config['raws']['']:
if os.path.isabs(os.path.expandvars(config['raws']['Gff'])):
ANN = os.path.expandvars(config['raws']['Gff'])
else:
ANN = os.getcwd() + "/" + os.path.expandvars(config['raws']['Gff'])
else:
ANN = config['raws']['Gff']
SAMPLE = config['sample'] SAMPLE = config['sample']
if SAMPLE == "": if SAMPLE == "":
SAMPLE = "_".join(OUTPUTDIR.split("/")[-2:]) SAMPLE = "_".join(OUTPUTDIR.split("/")[-2:])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment