Aaron Quinlan
unread,Jul 20, 2012, 9:46:08 PM7/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bedtools...@googlegroups.com
Hi Ralf,
I guess my initial reaction would be that you should create your intervals such that they are within the boundaries of the chromosome. How did you create them? The "flank" command in bedtools can do this for you while respecting telomere boundaries.
That said, I do see your point that it might be nice to have a "-clip" option that would truncate an interval to the chrom boundary. I'll give that some thought.
Best,
Aaron
On Jul 20, 2012, at 10:17 AM, Ralf wrote:
> Hi Aaron,
>
> I'm using BedTools, especially fastaFromBed. Nice program!!!
>
> I have the following problem, which I hope you are able to solve:
>
> I want to get the sequences (in .fasta format) 100 bases downstream (!) of features, that have their mapping-intervals near the 3' end of transcripts (RefSeq human.rna).
> As you can imagine, these sequences do not necessarily exist, if the feature mapping-interval is too close to the 3' end.
> So fastaFromBed comes with the message:
> Feature (gi|221316752|ref|NM_005567.3|:2256-2357) beyond the length of gi|221316752|ref|NM_005567.3| size (2277 bp). Skipping.
>
> Using a former version of BedTools, we do not get this error. Instead BedTools printed the beginning of the next (!) entry in the .fasta file (>header, sequence... etc.)
> By appropriate parsing of the outcoming .bed file, the task was accomplished perfectly.
>
> Unfortunately I'm now restricted to use the current (!) BedTools version!
> So is there some way to force BedTools to report the existing substretches of the requested 100 bases stretch instead of skipping the case?
>
> The alternative for me would be to test for availability of these downstream stretches and adjust the interval sizes in my query to fastaFromBed. But then, fastaFromBed would get completely useless to me, as I could also fetch the sequence, when checking for interval availability.
>
> Can you help me?
>
> Best regards,
>
> Ralf