# HG changeset patch # User greg # Date 1486570630 18000 # Node ID a3b7f34ad3f7c3c85c76433806214ab2098d96a7 # Parent 539a92a1316859888899a1d3d99d81186f3d0893 Uploaded diff -r 539a92a13168 -r a3b7f34ad3f7 gene_family_classifier.xml --- 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 ]]>