Question: ranges input for GenomicFiles
1
gravatar for Qiang
18 months ago by
Qiang30
Qiang30 wrote:

Hi,

I am working on a function with VCF/variants and BAM as input. The reduceByFile/reduceByRange are imported in my function, which require GRanges/GRangesList as ranges input.

However, my input requires a extented GRanges class with variants(DNAStringSet) in elementMetadata, like, CollapsedVCF.

Is it possible to extented the ranges arguments? for example, classes inherited from GRanges?

Thanks!

genomicfiles • 280 views
ADD COMMENTlink modified 18 months ago by Martin Morgan ♦♦ 23k • written 18 months ago by Qiang30
Answer: ranges input for GenomicFiles
1
gravatar for Martin Morgan
18 months ago by
Martin Morgan ♦♦ 23k
United States
Martin Morgan ♦♦ 23k wrote:

If you're asking about package development, then the bioc-devel mailing list is the correct place. Generally, method dispatch should work to theĀ  'nearest' class, so if the class you are interested in contains (in S4 language) a class that is in the signature of the method you want to use, then things should 'just work'. If they do notĀ  work, then more detail is required, in particular a reproducible example. For a package, this might require going so far as to create a small package as a github repository that captures the problem.

ADD COMMENTlink written 18 months ago by Martin Morgan ♦♦ 23k
1

Thank you for your reply. Because my input require extra data for each range. I guess I could extend a GRanges class with extra elementMetadata as input for my function, but convert it back to GRanges when using reduceBy functions.

ADD REPLYlink written 18 months ago by Qiang30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 123 users visited in the last hour