Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stephanie Spielman <stephanie.spielman@gmail.com>
  • Loading branch information
allyhawkins and sjspielman authored Mar 11, 2024
1 parent 68910db commit 3cda82e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/generate_unfiltered_sce.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ sample_type <- sample_metadata_df |>
is_xenograft ~ "patient-derived xenograft",
is_cell_line ~ "cell line",
# if neither column was provided, note that
is.na(is_xenograft) & is.na(is_cell_line) ~ "Not provided",
is.na(is_xenograft) && is.na(is_cell_line) ~ "Not provided",
.default = "patient tissue"
)
) |>
Expand Down
9 changes: 7 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ Be sure to enter the **full** path to the directory containing the fastq files i
You will also need to create a tab-separated values **sample** metadata file.
At a minimum, the sample metadata file must contain a column with `scpca_sample_id` as the header.
The contents of this column should contain all unique sample ids that are present in the `scpca_sample_id` column of the run metadata file.
Additionally, you may include columns indicating the sample type, such as `is_cell_line` and `is_xenograft`.
If the sample is from a cell line, `is_cell_line` should be `TRUE`, and if the sample is from a patient-derived xenograft, `is_xenograft` should be `TRUE`.
Additionally, you may include columns `is_cell_line` and `is_xenograft` to indicate the sample type:

- `is_cell_line`: Use `TRUE` if the sample is from a cell line and `FALSE` otherwise.
Cell type annotation will not be performed for samples that are `TRUE`.
- `is_xenograft`: Use `TRUE` is the sample is from a patient-derived xenograft and `FALSE` otherwise.

This information will be reflected in the summary QC report.

Below is an example of a sample metadata file:

Expand Down

0 comments on commit 3cda82e

Please sign in to comment.