Skip to content

Commit

Permalink
fix string replace to fix gene_fpkm sample nums
Browse files Browse the repository at this point in the history
  • Loading branch information
kubu4 committed Feb 22, 2022
1 parent fd53c74 commit 1d9c6df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions analyses/gene_fpkm.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/ballgown_analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ whole_gx_table_t_rownames <- rownames_to_column(whole_gx_table_t, "library")
# Create new column of old sample IDs
# Will be used for merging with phenotyp table
whole_gx_table_t_rownames <- whole_gx_table_t_rownames %>%
mutate(OldSample.ID = (str_sub(library, -4, 9))) %>%
mutate(OldSample.ID = (str_remove(library, "FPKM."))) %>%
relocate(OldSample.ID, .after = library)
# Merge FPKM gene table with phenotype table to get Treatments and Sex for each library
Expand Down

0 comments on commit 1d9c6df

Please sign in to comment.