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

Commit

Permalink
change to kf-openaccess-us-east-1-prd-pbta/data (#1121)
Browse files Browse the repository at this point in the history
* change to kf-openaccess-us-east-1-prd-pbta/data

* comment out Add Shatterseek

* logic for 1 row cnv_df

* Update config.yml

* revert changes

* Update 02-run-shatterseek-and-classify-confidence.R

* Update 02-run-shatterseek-and-classify-confidence.R

* Update 02-run-shatterseek-and-classify-confidence.R
  • Loading branch information
kgaonkar6 authored Jul 30, 2021
1 parent c66d5c5 commit 941d006
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

- run:
name: Data Download
command: OPENPBTA_URL=https://open-pbta.s3.amazonaws.com/data OPENPBTA_RELEASE=testing ./scripts/run_in_ci.sh bash download-data.sh
command: OPENPBTA_URL=https://s3.amazonaws.com/kf-openaccess-us-east-1-prd-pbta/data OPENPBTA_RELEASE=testing ./scripts/run_in_ci.sh bash download-data.sh

- run:
name: List Data Directory Contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ mergeCNsegments <- function(cnv_df) {
# does not match the previous row (starting at second row)
cnv_df$index <- 0
index_counter <- 1
for (row_iter in 2:nrow(cnv_df)) {
index_counter <- compare_adjacent_segs(cnv_df[row_iter, ], cnv_df[row_iter-1, ])
cnv_df[row_iter, "index"] <- index_counter
}
if (nrow(cnv_df) >=2) {
for (row_iter in 2:nrow(cnv_df)) {
index_counter <- compare_adjacent_segs(cnv_df[row_iter, ], cnv_df[row_iter-1, ])
cnv_df[row_iter, "index"] <- index_counter
}

# Separately update index for first row (check whether first row matches second row)
cnv_df[1, "index"] <- ifelse(compare_adjacent_segs(cnv_df[1,], cnv_df[2,]), 1, 0)
# Set index to 1 if row 1 matches row 2
# Set index to 0 if row 1 doesn't match row 2
}

# Merge rows by selecting minimum loc.start and maximum loc.end for each index value
# Reorder rows by chromosome and start position
Expand Down

0 comments on commit 941d006

Please sign in to comment.