# HG changeset patch # User jackcurragh # Date 1663942444 0 # Node ID d82cc435c5c84a00df88003b6283f7113b1f3211 # Parent c75cfa968e2a0a93e938e29402cda83134fd8f80 Uploaded diff -r c75cfa968e2a -r d82cc435c5c8 get_chrom_sizes/get_chrom_sizes.xml --- a/get_chrom_sizes/get_chrom_sizes.xml Fri Sep 23 14:09:06 2022 +0000 +++ b/get_chrom_sizes/get_chrom_sizes.xml Fri Sep 23 14:14:04 2022 +0000 @@ -1,32 +1,11 @@ - + Generates a TAB Delimited chrom.sizes File from an Inputted FASTA - - - #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 + 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 #else: - #if ${input2} == "chr": - 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 + 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