Skip to content

Commit

Permalink
feat: Study design now supports protein analyte
Browse files Browse the repository at this point in the history
  • Loading branch information
escauley committed Feb 20, 2024
1 parent 058c5e5 commit af48655
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions R/study_design.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,37 @@ studyDesign <- function(dcc.files,
area.col = "area",
nuclei.col = "nuclei",

Check warning on line 71 in R/study_design.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by escauley

file=/__w/DSPWorkflow/DSPWorkflow/R/study_design.R,line=71,col=47,[trailing_whitespace_linter] Trailing whitespace is superfluous.
sankey.exclude.slide = FALSE,

Check warning on line 72 in R/study_design.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by escauley

file=/__w/DSPWorkflow/DSPWorkflow/R/study_design.R,line=72,col=54,[trailing_whitespace_linter] Trailing whitespace is superfluous.
segment.id.length = 4) {
segment.id.length = 4,

Check warning on line 73 in R/study_design.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by escauley

file=/__w/DSPWorkflow/DSPWorkflow/R/study_design.R,line=73,col=47,[trailing_whitespace_linter] Trailing whitespace is superfluous.
analyte.type) {

Check warning on line 75 in R/study_design.R

View workflow job for this annotation

GitHub Actions / Activating_Parser / Action_Pack / Push_Check / Push Check to by escauley

file=/__w/DSPWorkflow/DSPWorkflow/R/study_design.R,line=75,col=1,[trailing_whitespace_linter] Trailing whitespace is superfluous.
# load all input data into a GeoMX object
object <-
readNanoStringGeoMxSet(
dccFiles = dcc.files,
pkcFiles = pkc.files,
phenoDataFile = pheno.data.file,
phenoDataSheet = pheno.data.sheet,
phenoDataDccColName = pheno.data.dcc.col.name,
protocolDataColNames = protocol.data.col.names,
experimentDataColNames = experiment.data.col.names
)

if(analyte.type == "RNA"){
object <-
readNanoStringGeoMxSet(
dccFiles = dcc.files,
pkcFiles = pkc.files,
phenoDataFile = pheno.data.file,
phenoDataSheet = pheno.data.sheet,
phenoDataDccColName = pheno.data.dcc.col.name,
protocolDataColNames = protocol.data.col.names,
experimentDataColNames = experiment.data.col.names
)
} else if(analyte.type == "protein"){
object <-
readNanoStringGeoMxSet(
dccFiles = dcc.files,
pkcFiles = pkc.files,
phenoDataFile = pheno.data.file,
phenoDataSheet = pheno.data.sheet,
phenoDataDccColName = pheno.data.dcc.col.name,
protocolDataColNames = protocol.data.col.names,
experimentDataColNames = experiment.data.col.names,
analyte = "protein"
)
} else{
stop("Analyte type must be 'rna' or 'protein'")
}
#

# Check the column names for required fields exist in the annotation
Expand Down

0 comments on commit af48655

Please sign in to comment.