outputLibs | R Documentation |
By default loads the original files of the experiment into
the global environment, named by the rows of the experiment
required to make all libraries have unique names.
Uses multiple cores to load, defined by multicoreParam
outputLibs(
df,
type = "default",
paths = filepath(df, type),
param = NULL,
strandMode = 0,
naming = "minimum",
library.names = name_decider(df, naming),
output.mode = "envir",
chrStyle = NULL,
envir = envExp(df),
verbose = TRUE,
force = TRUE,
BPPARAM = bpparam()
)
df |
an ORFik |
type |
a character(default: "default"), load files in experiment
or some precomputed variant, like "ofst" or "pshifted".
These are made with ORFik:::convertLibs(),
shiftFootprintsByExperiment(), etc.
Can also be custom user made folders inside the experiments bam folder.
It acts in a recursive manner with priority: If you state "pshifted",
but it does not exist, it checks "ofst". If no .ofst files, it uses
"default", which always must exists. |
paths |
character vector, the filpaths to use,
default |
param |
By default (i.e. |
strandMode |
numeric, default 0. Only used for paired end bam files. One of (0: strand = *, 1: first read of pair is +, 2: first read of pair is -). See ?strandMode. Note: Sets default to 0 instead of 1, as readGAlignmentPairs uses 1. This is to guarantee hits, but will also make mismatches of overlapping transcripts in opposite directions. |
naming |
a character (default: "minimum"). Name files as minimum information needed to make all files unique. Set to "full" to get full names. Set to "fullexp", to get full name with experiment name as prefix, the last one guarantees uniqueness. |
library.names |
character vector, names of libraries, default: name_decider(df, naming) |
output.mode |
character, default "envir". Output libraries to environment.
Alternative: "list", return as list. "envirlist", output to envir and return
as list. If output is list format, the list elements are named from:
|
chrStyle |
a GRanges object, TxDb, FaFile,
, a |
envir |
environment to save to, default
|
verbose |
logical, default TRUE, message about library output status. |
force |
logical, default TRUE If TRUE, reload library files even if
matching named variables are found in environment used by experiment
(see |
BPPARAM |
how many cores/threads to use? default: bpparam().
To see number of threads used, do |
The functions checks if the total set of libraries have already been loaded: i.e. Check if all names from 'library.names' exists as S4 objects in environment of experiment.
NULL (libraries set by envir assignment), unless output.mode is "list" or "envirlist": Then you get a list of the libraries.
Other ORFik_experiment:
ORFik.template.experiment()
,
ORFik.template.experiment.zf()
,
bamVarName()
,
create.experiment()
,
experiment-class
,
filepath()
,
libraryTypes()
,
organism,experiment-method
,
read.experiment()
,
save.experiment()
,
validateExperiments()
## Load a template ORFik experiment
df <- ORFik.template.experiment()
## Default library type load, usually bam files
# outputLibs(df, type = "default")
## .ofst file load, if ofst files does not exists
## it will load default
# outputLibs(df, type = "ofst")
## .wig file load, if wiggle files does not exists
## it will load default
# outputLibs(df, type = "wig")
## Load as list
outputLibs(df, output.mode = "list")
## Load libs to new environment (called ORFik in Global)
# outputLibs(df, envir = assign(name(df), new.env(parent = .GlobalEnv)))
## Load to hidden environment given by experiment
# envExp(df) <- new.env()
# outputLibs(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.