I have a BAM file and also the related refference genome (fasta), and now I need to extract all the position for some tags, such as "GCTTCT" in the genome, and then make a custom bed file for these tags as the following:
chr1 127471196 127472363 +
chr1 127472363 127473530 +
chr1 127473530 127474697 +
chrx 127474697 127475864 +
chr2 127475864 127477031 -
chr3 127477031 127478198 -
chr5 127478198 127479365 -
chr7 127479365 127480532 +
chr7 127480532 127481699 -
Your help will be greatly appreciated!
chr1 127471196 127472363 +
chr1 127472363 127473530 +
chr1 127473530 127474697 +
chrx 127474697 127475864 +
chr2 127475864 127477031 -
chr3 127477031 127478198 -
chr5 127478198 127479365 -
chr7 127479365 127480532 +
chr7 127480532 127481699 -
Your help will be greatly appreciated!
Comment