Skip to content

Commit aec9149

Browse files
author
Jon Palmer
committed
fix stupid indents
1 parent bc1c6f3 commit aec9149

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

funannotate/train.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,12 @@ def __init__(self, prog):
689689
try:
690690
TRINITY = os.environ["TRINITYHOME"].strip()
691691
except KeyError:
692-
try:
693-
TRINITY = os.environ["TRINITY_HOME"].strip()
694-
except KeyError:
695-
lib.log.error(
696-
"$TRINITYHOME nor $TRINITY_HOME environmental variable not found, TRINITY is not properly configured. You can use the --TRINITYHOME argument to specify a path at runtime.")
697-
sys.exit(1)
692+
try:
693+
TRINITY = os.environ["TRINITY_HOME"].strip()
694+
except KeyError:
695+
lib.log.error(
696+
"$TRINITYHOME nor $TRINITY_HOME environmental variable not found, TRINITY is not properly configured. You can use the --TRINITYHOME argument to specify a path at runtime.")
697+
sys.exit(1)
698698
else:
699699
TRINITY = args.TRINITYHOME.strip()
700700

@@ -1126,15 +1126,15 @@ def __init__(self, prog):
11261126
if args.strain:
11271127
lib.log.info('Trinity/PASA has completed, you are now ready to run funanotate predict, for example:\n\n\
11281128
funannotate predict -i {:} \\\n\
1129-
-o {:} -s "{:}" --strain {:} --cpus {:}\n'.format(args.input, args.out, organism, args.strain, args.cpus))
1129+
-o {:} -s "{:}" --strain {:} --cpus {:}\n'.format(args.input, args.out, organism, args.strain, args.cpus))
11301130
elif args.isolate:
11311131
lib.log.info('Trinity/PASA has completed, you are now ready to run funanotate predict, for example:\n\n\
11321132
funannotate predict -i {:} \\\n\
1133-
-o {:} -s "{:}" --isolate {:} --cpus {:}\n'.format(args.input, args.out, organism, args.isolate, args.cpus))
1133+
-o {:} -s "{:}" --isolate {:} --cpus {:}\n'.format(args.input, args.out, organism, args.isolate, args.cpus))
11341134
else:
11351135
lib.log.info('Trinity/PASA has completed, you are now ready to run funanotate predict, for example:\n\n\
11361136
funannotate predict -i {:} \\\n\
1137-
-o {:} -s "{:}" --cpus {:}\n'.format(args.input, args.out, organism, args.cpus))
1137+
-o {:} -s "{:}" --cpus {:}\n'.format(args.input, args.out, organism, args.cpus))
11381138
print("-------------------------------------------------------")
11391139

11401140

funannotate/update.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1638,12 +1638,12 @@ def __init__(self, prog):
16381638
try:
16391639
TRINITY = os.environ["TRINITYHOME"].strip()
16401640
except KeyError:
1641-
try:
1642-
TRINITY = os.environ["TRINITY_HOME"].strip()
1643-
except KeyError:
1644-
lib.log.error(
1645-
"$TRINITYHOME nor $TRINITY_HOME environmental variable not found, TRINITY is not properly configured. You can use the --TRINITYHOME argument to specify a path at runtime.")
1646-
sys.exit(1)
1641+
try:
1642+
TRINITY = os.environ["TRINITY_HOME"].strip()
1643+
except KeyError:
1644+
lib.log.error(
1645+
"$TRINITYHOME nor $TRINITY_HOME environmental variable not found, TRINITY is not properly configured. You can use the --TRINITYHOME argument to specify a path at runtime.")
1646+
sys.exit(1)
16471647
else:
16481648
TRINITY = args.TRINITYHOME.strip()
16491649

0 commit comments

Comments
 (0)