Skip to content
Snippets Groups Projects
getColumnWithSampleID.Rd 703 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepare_data2fit.R
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\name{getColumnWithSampleID}
\alias{getColumnWithSampleID}
Arnaud Duvermy's avatar
Arnaud Duvermy committed
\title{Get column name with sampleID}
\usage{
Arnaud Duvermy's avatar
Arnaud Duvermy committed
getColumnWithSampleID(dtf_countsLong, metadata)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}
\arguments{
\item{dtf_countsLong}{Long data frame of counts}

\item{metadata}{Metadata data frame}
}
\value{
Column name with sampleID
}
\description{
Returns the column name in the metadata data frame that corresponds to the given sampleID.
}
\examples{
list_var <- init_variable()
mock_data <- mock_rnaseq(list_var, n_genes = 3, 2,2)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
dtf_countLong <- countMatrix_2longDtf(mock_data$counts)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
getColumnWithSampleID(dtf_countLong, mock_data$metadata)
Arnaud Duvermy's avatar
Arnaud Duvermy committed
}