Mercurial > repos > greg > gene_family_classifier
changeset 50:a3b7f34ad3f7 draft
Uploaded
author | greg |
---|---|
date | Wed, 08 Feb 2017 11:17:10 -0500 |
parents | 539a92a13168 |
children | 3b2d35b75268 |
files | gene_family_classifier.xml |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gene_family_classifier.xml Wed Feb 08 11:12:12 2017 -0500 +++ b/gene_family_classifier.xml Wed Feb 08 11:17:10 2017 -0500 @@ -96,13 +96,15 @@ #else: && ls -l $orthogroups_fasta_src_dir | grep f | awk -F ' ' '{print $5"\t"$9}' > $output_ptcgf #end if - && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir || true + #if $os.path.exists($orthogroups_fasta_src_dir) and len($os.listdir($orthogroups_fasta_src_dir)) > 0: + && mv $orthogroups_fasta_src_dir/* $orthogroups_fasta_dest_dir + #end if #end if #if $single_copy_orthogroup: && ls -l $single_copy_fasta_src_dir | grep f | awk -F ' ' '{print $5"\t"$9}' > $output_ptsco - #if len($os.listdir($single_copy_fasta_src_dir)) > 0: - && mv $single_copy_fasta_src_dir/* $single_copy_fasta_dest_dir || true + #if $os.path.exists($single_copy_fasta_src_dir) and len($os.listdir($single_copy_fasta_src_dir)) > 0: + && mv $single_copy_fasta_src_dir/* $single_copy_fasta_dest_dir #end if #end if ]]>