Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update create_crosstab.R #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BelindaBGarana
Copy link

For converting_to_relative_to_reference function: add aggregation function (mean) in case of multiple reference samples on 1 plex

Add aggregation function (mean) in case of multiple reference samples on 1 plex
@TylerSagendorf
Copy link

@BelindaBGarana Sorry for the late reply! If the mean is desired in the case of multiple references, Reference = "(ref1 + ref2)/2" can be specified in the references table, where ref1 and ref2 are the IDs for the reference channels in that TMT plex. To generalize this for n references, use sprintf("(%s) / %d", paste(reference_columns, collapse = " + "), length(reference_columns)), where reference_columns is the character vector of reference columns for each plex.

@TylerSagendorf
Copy link

@BelindaBGarana Sorry for the late reply! If the mean is desired in the case of multiple references, Reference = "(ref1 + ref2)/2" can be specified in the references table, where ref1 and ref2 are the IDs for the reference channels in that TMT plex. To generalize this for n references, use sprintf("(%s) / %d", paste(reference_columns, collapse = " + "), length(reference_columns)), where reference_columns is the character vector of reference columns for each plex.

I will take a look at the modification you proposed, as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants