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

Get all sample ids (viallabel) used in the study #2

Open
biodavidjm opened this issue Nov 8, 2024 · 0 comments
Open

Get all sample ids (viallabel) used in the study #2

biodavidjm opened this issue Nov 8, 2024 · 0 comments
Assignees

Comments

@biodavidjm
Copy link
Member

I started this code:

# Create an empty list to store column names
assay_sampleids <- list()

# Iterate over each object and save its column names, excluding specific values
for (object_name in norm_objects) {
  assay_sampleids[[object_name]] <- 
    setdiff(
      colnames(
        get(object_name,
            envir = asNamespace("MotrpacRatTraining6moData"))),
      c("feature", "feature_ID", "tissue", "assay"))
}

# print(assay_sampleids)

ToDo: add the same for metabolomics and immunoassays

@biodavidjm biodavidjm self-assigned this Nov 8, 2024
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

No branches or pull requests

1 participant