R/Structstrings-DotBracket-io.R
DotBracketStringSet-io.Rd
readDotBracketStringSet
and writeDotBracketStringSet
are
functions to read and write dot bracket strings from/to file. Since the
<>
is in conflict with the fasta format, saving to fastq file is
sometimes the only option. Saving a string with a <>
bracket type to a
fasta file will throw an error.
The functions use the underlying Biostrings
infrastructure and share
most of its parameters. For a more detailed look have a look
here
.
readDotBracketStringSet(
filepath,
format = "fasta",
nrec = -1L,
skip = 0L,
seek.first.rec = FALSE,
use.names = TRUE,
with.qualities = FALSE
)
writeDotBracketStringSet(
x,
filepath,
append = FALSE,
compress = FALSE,
format = "fasta",
...
)
saveDotBracketStringSet(
x,
objname,
dirpath = ".",
save.dups = FALSE,
verbose = TRUE
)
The file name, when writing, or file name(s) when reading.
"fasta" or "fastq"
Single integer. The maximum of number of records to read in. Negative values are ignored.
Single non-negative integer. The number of records of the data file(s) to skip before beginning to read in records.
Have a look here
.
A DotBracketStringSet object
TRUE
or FALSE
. If TRUE
output will be
appended to file. Otherwise, it will overwrite the contents of file.
readDotBracketStringSet
returns a DotBracketStringSet
object, writeDotBracketStringSet
returns NULL
invisibly.