Skip to content

add sample order checks and updated find_column_names function#38

Open
hkhoff wants to merge 1 commit intomainfrom
feat-sample-order
Open

add sample order checks and updated find_column_names function#38
hkhoff wants to merge 1 commit intomainfrom
feat-sample-order

Conversation

@hkhoff
Copy link
Copy Markdown
Contributor

@hkhoff hkhoff commented Apr 23, 2025

Added code in 4a and 4b to check that SampleID order is the same between metadata and OTU table data frames before combining into a phyloseq object, and changed soon-to-be deprecated function to more current 'extract_column_names()' function.
Closes #37

@hkhoff hkhoff added the enhancement New feature or request label Apr 23, 2025
@hkhoff hkhoff requested a review from BethanLittleford April 23, 2025 15:30
@hkhoff hkhoff self-assigned this Apr 23, 2025

```{r}
# Check for differences between the two lists
setdiff(names(OTU_table), data_samples$SampleID) # This tells us which samples are present in first set that aren't present in second set - if you get output here, we need to clean up names
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "set" mean here in this description? Can it be more specific (e.g. samples present in OTU table versus samples present in metadata)?


```{r}
# Check for differences between the two lists
setdiff(names(OTU_table), data_samples$SampleID) # This tells us which samples are present in first set that aren't present in second set - if you get output here, we need to clean up names
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above regarding the use of the word "set" in description.

@BethanLittleford
Copy link
Copy Markdown
Contributor

Other than my comment regarding the word "set" in the code description, the rest looks great and I think it can be merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Step4a - sample ordering

2 participants