![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can or should we perform feature counting with `bedtools intersect -c`? | foolishbrat | Bioinformatics | 1 | 09-01-2017 08:11 AM |
bedtools intersect -f -F -r behavior | pepeluisrr | Bioinformatics | 0 | 08-15-2017 08:07 AM |
intersect file bam-bed and count read | edeka | Bioinformatics | 3 | 06-20-2016 03:34 AM |
BEDtools intersect output is BED instead of BAM | syfo | Bioinformatics | 1 | 12-18-2012 05:26 AM |
GATK: unable to write data to BAM schedule file | bjchen | Bioinformatics | 5 | 02-13-2012 01:21 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Italy Join Date: May 2018
Posts: 5
|
![]()
Hi everyone, I'm trying to use bedtools intersect to check the number of mapped reads in target regions (in a .bed file) originated by targeted bisulfite sequencing experiment (EpiSeq Roche).
I used the following command. Code:
./bedtools intersect -bed -abam sample2.bam -b ~/Data/MethylSeq/dataset/Agesmoke_dataset/AgeSmkSop_all_primary_targets.bed Code:
* WARNING: File sample2.bam has inconsistent naming convention for record: NC_000016.9 24163386 24163537 M03971:33:000000000-BN5NL:1:2114:12003:16132/1 255 + * WARNING: File sample2.bam has inconsistent naming convention for record: NC_000016.9 24163386 24163537 M03971:33:000000000-BN5NL:1:2114:12003:16132/1 255 + Can someone help us? Thank you. Nicola |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: bethesda Join Date: Feb 2009
Posts: 700
|
![]()
Check your chromosome names.
Are they "chr" style in both bed and bam? |
![]() |
![]() |
![]() |
#3 | |
Junior Member
Location: Italy Join Date: May 2018
Posts: 5
|
![]() Quote:
About your question, I think not. In the bed file I have record like this: Code:
chr1 11123000 11123242 chr1:11123018-11123218 chr1 16696418 16696674 chr1:16696447-16696647 Code:
M03971:33:000000000-BN5NL:1:2114:12003:16132 99 NC_000016.9 24163387 255 151M = 24163431 194 TGATCGGTGGTGA TGGGTTAGGTAGAGTGTATTAGTTCGTTTTTATGTTGTTGATAAAGATATATTCGAGATTGTGTAATTTATGAAAAAGAGGTTTAATGGATTTGGGGAGGTTTTAATTATGGTGGAAGGTTAAAGTTATGTTTTATAT BCCCCCCBBC ABGGGGGGFGGGGHHHHFGGHHHHHHHHGGHGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHGHHHHHHHHHHHHHFHHHHGGHHHHHHHHHHHHHHHHGGFGGEHHGHHHHHHHHHHGHHHGHHHHHHHHHHHHHHHHHHH NM:i:1 ZS:Z:++ Is this the problem? How can I resolve it? Nicola |
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: bethesda Join Date: Feb 2009
Posts: 700
|
![]()
NC_000016 is a name used for "chr16".
This the "official" name used at NCBI : https://www.ncbi.nlm.nih.gov/nuccore/NC_000016.10/ You have to convert the "NCBI name" to "chr" names (or vice versa). There are many ways to rename fields. You can always brute force it using a custom simple program or script using your favorite programming language : bash, python, perl, C, etc. Any easy way would be to reheader the bam file. Please see samtools documentation for this. |
![]() |
![]() |
![]() |
#5 | |
Junior Member
Location: Italy Join Date: May 2018
Posts: 5
|
![]() Quote:
I'm sorry for the triviality of the problem, but I'm not very practical with this stuff and the bedtools message wasn't very helpful. Again, thank you! Best regards Nicola |
|
![]() |
![]() |
![]() |
Tags |
bedtools |
Thread Tools | |
|
|