Product between a "bed" object and a vector.
Missing values are replaced by 0 (after centering), as if they
had been imputed using parameter center
.
Object of type bed, which is the mapping of some bed file.
Use obj.bed <- bed(bedfile)
to get this object.
A vector of same size as ind.col
.
An optional vector of the row indices (individuals) that
are used. If not specified, all rows are used.
Don't use negative indices.
An optional vector of the column indices (SNPs) that are used.
If not specified, all columns are used.
Don't use negative indices.
Vector of same length of ind.col
to subtract from columns of X
.
Vector of same length of ind.col
to divide from columns of X
.
Number of cores used. Default doesn't use parallelism.
You may use bigstatsr::nb_cores()
.
\(X \cdot y\).
bedfile <- system.file("extdata", "example.bed", package = "bigsnpr")
obj.bed <- bed(bedfile)
y.col <- rep(1, ncol(obj.bed))
str(bed_prodVec(obj.bed, y.col))
#> num [1:517] 2841 2916 2842 2835 2872 ...