Skip to content

Commit

Permalink
lack of Consequence bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Nov 15, 2017
1 parent 6651f30 commit 6975f57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/R/pcgrr/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,8 @@ get_calls <- function(vcf_gz_file, pcgr_data, sample_id = NULL, tumor_dp_tag = '
vcf_data_df[!is.na(vcf_data_df$PROTEIN_CHANGE) & stringr::str_detect(vcf_data_df$PROTEIN_CHANGE,"^ENSP"),]$PROTEIN_CHANGE <- NA
}
vcf_data_df$CODING_STATUS <- 'noncoding'
if(nrow(vcf_data_df[stringr::str_detect(vcf_data_df$CONSEQUENCE,"^(stop_gained|stop_lost|start_lost|frameshift_variant|missense_variant|splice_donor|splice_acceptor|inframe_deletion|inframe_insertion)"),]) > 0){
vcf_data_df[stringr::str_detect(vcf_data_df$CONSEQUENCE,"^(stop_gained|stop_lost|start_lost|frameshift_variant|missense_variant|splice_donor|splice_acceptor|inframe_deletion|inframe_insertion)"),]$CODING_STATUS <- 'coding'
if(nrow(vcf_data_df[!is.na(vcf_data_df$CONSEQUENCE) & stringr::str_detect(vcf_data_df$CONSEQUENCE,"^(stop_gained|stop_lost|start_lost|frameshift_variant|missense_variant|splice_donor|splice_acceptor|inframe_deletion|inframe_insertion)"),]) > 0){
vcf_data_df[!is.na(vcf_data_df$CONSEQUENCE) & stringr::str_detect(vcf_data_df$CONSEQUENCE,"^(stop_gained|stop_lost|start_lost|frameshift_variant|missense_variant|splice_donor|splice_acceptor|inframe_deletion|inframe_insertion)"),]$CODING_STATUS <- 'coding'
}

for(col in c('width','strand','totalDepth','refDepth','altDepth','sampleNames')){
Expand Down
Binary file modified src/pcgr.tgz
Binary file not shown.

0 comments on commit 6975f57

Please sign in to comment.