Skip to content
Prev 6984 / 21312 Next

[Bioc-devel] GRanges to VRanges coercion

Hi Thomas, Michael,

makeVRangesFromGRanges has been added to 1.13.34. The 
methods-VRanges-class.R file was already large so I added 
makeVRangesFromGRanges.R.

A few notes:

- '...' was replaced with 'keep.extra.columns'

- row names are propagated automatically so I removed the explicit 
row.names(vr)

- Errors are thrown in 2 cases: when arguments are not a single string 
and if 'ref' can't be found. You may want to consider a warning if one 
of the 'field' args can't be found in the GRanges metadata.

- I have not added unit tests. If you have some I'll put them in.

- The function is documented in VRanges-class.Rd. If you want to make a 
stand alone man page similar to makeGRangesFromDataFrame I'll add that too.

Thanks for the contribution Thomas. Nice addition.

Valerie
On 02/20/2015 04:17 PM, Michael Lawrence wrote: