Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
proost committed Jun 14, 2016
1 parent 0b943ce commit 5c79ec3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/orthology.py
Expand Up @@ -16,7 +16,7 @@ def run_orthofinder(self):
orthofinder_dir = self.dp['GLOBAL']['orthofinder_output']
orthofinder_cores = self.cp['TOOLS']['orthofinder_cores']

os.makedirs(os.path.dirname(orthofinder_dir), exist_ok=True)
os.makedirs(orthofinder_dir, exist_ok=True)

filename, jobname = self.write_submission_script("orthofinder_%d",
self.python_module + ' ' +
Expand All @@ -26,6 +26,7 @@ def run_orthofinder(self):
"orthofinder_%d.sh")

for g in self.genomes:
print('çopying', self.dp[g]['protein_fasta'], 'to', os.path.join(orthofinder_dir, g + '.fasta'))
copy(self.dp[g]['protein_fasta'], os.path.join(orthofinder_dir, g + '.fasta'))

subprocess.call(["qsub", "-pe", "cores", orthofinder_cores, "-v", "fasta_dir=" + orthofinder_dir + ",num_cores=" + orthofinder_cores, filename])
Expand Down

0 comments on commit 5c79ec3

Please sign in to comment.