Skip to content

Commit

Permalink
Merge pull request #17 from xzhuo/patch-2
Browse files Browse the repository at this point in the history
remove the last comma in the new json file
  • Loading branch information
lidaof committed May 18, 2019
2 parents 2c02b99 + 2da2377 commit c783f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/add.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Get chromosome sizes
Download the file from http://hgdownload.soe.ucsc.edu/goldenPath/mm10/bigZips/mm10.chrom.sizes,
you can following awk command to create the ``chromSize.json`` file::

sort -V myoLuc2.chrom.sizes | awk 'BEGIN{print "["}{ print "\t{\"chr\": \""$1"\", \"size\": "$2"},"}END{print "]"}' > chromSize.json
sort -V myoLuc2.chrom.sizes | awk 'BEGIN{ORS="";print "["}{sep=NR==1?"\n":",\n"; print sep"\t{\"chr\": \""$1"\", \"size\": "$2"}"}END{print "\n]"}' > chromSize.json

Move the ``chromSize.json`` file into the mm10 folder.

Expand Down

0 comments on commit c783f5e

Please sign in to comment.