Mercurial > repos > greg > phylogenomics_analysis
changeset 12:16861f56079f draft
Uploaded
author | greg |
---|---|
date | Thu, 05 Jan 2017 15:13:37 -0500 |
parents | cac8a85418c2 |
children | b37db5a8ed13 |
files | phylogenomics_analysis.xml |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/phylogenomics_analysis.xml Thu Jan 05 15:08:34 2017 -0500 +++ b/phylogenomics_analysis.xml Thu Jan 05 15:13:37 2017 -0500 @@ -20,12 +20,22 @@ $sys.exit(1) #end if #set src_dir = $os.path.join('phylogenomicsAnalysis_dir', 'orthogroups_fasta') - #set num_orthogroup_faa = len([f for f in $os.listdir($src_dir) if f.endswith('.faa')]) + #set num_orthogroup_faa = 0 + #for f in $os.listdir($src_dir): + #if $f.endswith('.faa')]) + set num_orthogroup_faa = $num_orthogroup_faa + 1 + #end if + #end for #if $num_orthogroup_faa == 0: print > $sys.stderr($invalid_input) $sys.exit(1) #end if - #set num_orthogroup_fna = len([f for f in $os.listdir($src_dir) if f.endswith('.fna')]) + #set num_orthogroup_fna = 0 + #for f in $os.listdir($src_dir): + #if $f.endswith('.fna')]) + set num_orthogroup_fna = $num_orthogroup_fna + 1 + #end if + #end for #set dest_dir = $output.extra_files_path mkdir -p $dest_dir && PhylogenomicsAnalysis