xml update

generate a bigwig (bw) file from a bed (remove non-nuclear genomes first)

for i in ./*bed; do perl -wnl -e ‘/Chr\d/ and print;’ $i | bedtools genomecov -bg -i – -g ~/bsgenome_tair9.Chr.txt > ${i%%bed}bg; done

then

for i in ./*bg; do bedGraphToBigWig $i ~/bsgenome_tair9.Chr.txt ${i%%bg}bw; done

collect the names of these bw

perl -wpl -e ‘s|(.*)||;’ names_bw.txt > xml.format.names.txt

paste names from this new file into the field of a new igvdata xml, add this xml to your igv_registry.txt in the igv directory,
and import the bw files to an appropriately named directory, et voila

Leave a Reply

Your email address will not be published. Required fields are marked *