# HG changeset patch # User jackcurragh # Date 1661856864 0 # Node ID c81aa97acf65b36b1af0b868a1891694e10d22ef # Parent a6b6e48756f94c3c5f7237213559ba861b3b634e Uploaded diff -r a6b6e48756f9 -r c81aa97acf65 get_chrom_sizes/get_chrom_sizes.xml --- a/get_chrom_sizes/get_chrom_sizes.xml Tue Aug 30 10:12:12 2022 +0000 +++ b/get_chrom_sizes/get_chrom_sizes.xml Tue Aug 30 10:54:24 2022 +0000 @@ -1,16 +1,15 @@ - + Generates a TAB Delimited chrom.sizes File from an Inputted FASTA - python $__tool_directory__/calculating_chrom.sizes.py ${refGenomeSource.genomeSource} ${input2} + #if $refGenomeSource.genomeSource == "builtin": cat ${refGenomeSource.input1_builtin.fields.path} | awk '$0 ~ ">" {if (NR > 1) {print c;} c=0; printf ${input2} substr($0,2,100) "\t"; } $0 !~ ">" {c+=length($0);} END {print c; }' | cat > $output1 - none ${refGenomeSource.input1_builtin.fields.path} ${output1} #else: cat ${refGenomeSource.input1_file} | awk '$0 ~ ">" {if (NR > 1) {print c;} c=0; printf ${input2} substr($0,2,100) "\t"; } $0 !~ ">" {c+=length($0);} END {print c; }' | cat > $output1 #end if