Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

V20 ci files #1120

Merged
merged 5 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ get_biospecimen_ids <- function(filename, id_mapping_df) {
# 'Tumor_Sample_Barcode'
# if the files have consensus in the name, the first line of the file does
# not contain MAF version information
if (grepl("consensus", filename)) {
if (grepl("consensus|hotspots", filename)) {
snv_file <- data.table::fread(filename, data.table = FALSE)
} else {
snv_file <- data.table::fread(filename,
Expand Down
2 changes: 1 addition & 1 deletion analyses/create-subset-files/02-subset_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ subset_files <- function(filename, biospecimen_ids, output_directory) {
# filtering strategy depends on the file type, mostly because how the sample
# IDs change based on the file type -- that's why this logic is required
if (grepl("pbta-snv", filename)) {
if (grepl("consensus-mutation", filename)) {
if (grepl("consensus-mutation|hotspots", filename)) {
snv_file <- data.table::fread(filename, data.table = FALSE)
snv_file %>%
dplyr::filter(Tumor_Sample_Barcode %in% biospecimen_ids) %>%
Expand Down
Binary file modified analyses/create-subset-files/biospecimen_ids_for_subset.RDS
Binary file not shown.
5 changes: 4 additions & 1 deletion analyses/create-subset-files/create_subset_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail

# Set defaults for release and biospecimen file name
BIOSPECIMEN_FILE=${BIOSPECIMEN_FILE:-biospecimen_ids_for_subset.RDS}
RELEASE=${RELEASE:-release-v19-20210423}
RELEASE=${RELEASE:-release-v20-20210726}
NUM_MATCHED=${NUM_MATCHED:-15}

# This option controls whether or not the two larger MAF files are skipped as
Expand Down Expand Up @@ -87,6 +87,9 @@ cp $FULL_DIRECTORY/pbta-mend* $SUBSET_DIRECTORY
# fusion summary files
cp $FULL_DIRECTORY/fusion_summary* $SUBSET_DIRECTORY

# MB pathology subtypes
cp $FULL_DIRECTORY/pbta-mb-pathology-subtypes.tsv $SUBSET_DIRECTORY

# if the md5sum.txt file already exists, get rid of it
cd $SUBSET_DIRECTORY
rm -f md5sum.txt
Expand Down