Skip to content

Doubling suffixes in calculateDiffMeth #353

@J-Moravec

Description

@J-Moravec

In documentation, the suffix is described as

suffix A character string to append to the name of the output flat file database,
only used if save.db is true, default actions: The default suffix is a 13-character
random string appended to the fixed prefix “methylDiff”, e.g. “methylDiff_16d3047c1a254.txt.bgz”.
dbdir The directory where flat file database(s) should be stored, defaults to
getwd(), working directory for newly stored databases and to same directory for
already existing database

However, when I run calculateDiffMeth on my unite data, the fixed prefix is not methylDiff, but methylDiff_oldsufix, where oldsuffix is the suffix from the united dataset. The file from calculateDiffMeth thus looks like methylDiff_oldsuffix_suffix.txt.bgz.

This means that when running calculateDiffMeth(..., suffix = "foo") on a MethylBaseDB object stored in methylBase_bar.txt.bgz, the resulting object would be methylDiff_bar_foo.txt.bgz.

Honestly, it would be beneficial if I could specify the path directly. calculateDiffMethDSS doesn't support (according to documentation) storage in the DB format, but returns the MethDiff object, which (I assume?) can be converted to MethDiffDB using the makeMethylDB function. But makeMethylDB has no option to specify suffix.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions