# HG changeset patch # User jackcurragh # Date 1652792551 0 # Node ID c96b29e00427d7388ab38250971a942063a5f293 # Parent ec8651ac3d61d42b5f7d79aa472b5a7233ece70f Uploaded diff -r ec8651ac3d61 -r c96b29e00427 get_chrom_sizes/calculating_chrom.sizes.py --- a/get_chrom_sizes/calculating_chrom.sizes.py Mon May 16 09:11:51 2022 +0000 +++ b/get_chrom_sizes/calculating_chrom.sizes.py Tue May 17 13:02:31 2022 +0000 @@ -2,9 +2,11 @@ # adapted from https://bioexpressblog.wordpress.com/2014/04/15/calculate-length-of-all-sequences-in-an-multi-fasta-file/ from sys import argv # python calculating_chrom.sizes.py genome_input.fa output.chrom.sizes -genome = str(argv[1]) -prefix = str(argv[2]) -output = str(argv[3]) +fasta_source = str(argv[1]) +genome = str(argv[2]) +builtin = str(argv[3]) +prefix = str(argv[4]) +output = str(argv[5]) # genome = 'test-data/test.fasta' # output = "test-data/test_chrom.sizes" diff -r ec8651ac3d61 -r c96b29e00427 get_chrom_sizes/get_chrom_sizes.xml --- a/get_chrom_sizes/get_chrom_sizes.xml Mon May 16 09:11:51 2022 +0000 +++ b/get_chrom_sizes/get_chrom_sizes.xml Tue May 17 13:02:31 2022 +0000 @@ -1,7 +1,7 @@ Chromosome sizes are needed for the creation of ribosome profiles. This tool generates a tab delimited chrom.sizes file from an inputted fasta - python $__tool_directory__/calculating_chrom.sizes.py ${input1} ${input2} ${output1} + python $__tool_directory__/calculating_chrom.sizes.py ${genomeSource} ${input1_file} ${input1_builtin} ${input2} ${output1} @@ -10,7 +10,7 @@ - + @@ -18,7 +18,7 @@ - +