Question: ranges input for GenomicFiles
1
gravatar for Qiang
22 months ago by
Qiang70
Qiang70 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 • 335 views
ADD COMMENTlink modified 22 months ago by Martin Morgan ♦♦ 24k • written 22 months ago by Qiang70
Answer: ranges input for GenomicFiles
1
gravatar for Martin Morgan
22 months ago by
Martin Morgan ♦♦ 24k
United States
Martin Morgan ♦♦ 24k 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 22 months ago by Martin Morgan ♦♦ 24k
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 22 months ago by Qiang70
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: 302 users visited in the last hour