[Bioc-devel] tilde paths in rtracklayer import and export functions

Hahne, Florian florian.hahne at novartis.com
Thu Dec 20 10:34:21 CET 2012

Hi Michael,

I realized that rtracklayer does not handle path expansion in file names
export.2bit(seqs, con="~/test.2bit")
Error in .TwoBits_export(mapply(.DNAString_to_twoBit, object, seqnames),
  UCSC library operation failed
In addition: Warning message:
In .TwoBits_export(mapply(.DNAString_to_twoBit, object, seqnames),  :
  Can't open ~/test.2bit to write: No such file or directory
> export.2bit(seqs, con=path.expand("~/test.2bit"))

Wouldn't it be worthwhile to add a call to path.expand directly to the
export and import functions?


More information about the Bioc-devel mailing list