ranges input for GenomicFiles
1
1
Entering edit mode
Qiang ▴ 70
@qiang-9580
Last seen 21 months ago

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 • 595 views
ADD COMMENT
1
Entering edit mode
@martin-morgan-1513
Last seen 16 days ago
United States

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 COMMENT
1
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 395 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6