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

Commit

Permalink
Adding support for hg38_30 to karyoploter.R
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Sep 3, 2019
1 parent 9b34830 commit 10edf55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Results-template/Scripts/karyoploter.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parser$add_argument("-d", "--degout", type="character", required=TRUE,
parser$add_argument("-c", "--gene2coord", type="character", required=TRUE,
help="Gene to coordinate file")
parser$add_argument("-g", "--genome", type="character", required=TRUE,
help="Genome .. either hg19/hg38/mm9/mm10/Mmul8.0.1/canFam3")
help="Genome .. either hg19/hg38/mm9/mm10/Mmul8.0.1/canFam3/hg38_30")
parser$add_argument("-f", "--fdr", type="double", default=0.05,
help="FDR cutoff to use")
parser$add_argument("-o", "--outfileprefix", type="character", required=TRUE,
Expand All @@ -20,8 +20,8 @@ if (! file.exists(f)) {
stop(paste("File does not exist:",f))
}

if (! args$genome %in% c("hg19","hg38","mm9","mm10","Mmul8.0.1","canFam3")) {
stop("Only hg19/hg38/mm9/mm10/Mmul8.0.1/canFam3 genomes are supported!")
if (! args$genome %in% c("hg19","hg38","hg38_30","mm9","mm10","Mmul8.0.1","canFam3")) {
stop("Only hg19/hg38/mm9/mm10/Mmul8.0.1/canFam3/hg38_30 genomes are supported!")
}


Expand Down Expand Up @@ -54,7 +54,7 @@ if(nrow(deseqout_filtered_w_coord)==0){
genome=args$genome
chrs=c()
maxchrs=0
if (genome %in% c("hg19","hg38")) {maxchrs=22}
if (genome %in% c("hg19","hg38","hg38_30")) {maxchrs=22}
if (genome %in% c("mm10","mm9")) {maxchrs=19}
if (genome %in% c("rheMac8")) {maxchrs=20}
if (genome %in% c("canFam3")) {maxchrs=38}
Expand Down

0 comments on commit 10edf55

Please sign in to comment.