Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.3 #33

Merged
merged 2 commits into from
Mar 8, 2019
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
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ bins from non-informative ones.

### Installation

Stable releases can be installed using [Conda](https://conda.io/docs/). This is the preferred option since
Conda takes care of all necessary dependencies.
Stable releases can be installed using [Conda](https://conda.io/docs/). This option takes care of all necessary
dependencies.
```bash

conda install -f -c conda-forge -c bioconda wisecondorx
```

Alternatively, WisecondorX can be installed using the python Setuptools library.
Alternatively, WisecondorX can be installed through pip install. This option ascertains the latest version is downloaded,
yet it does not install R dependencies.
```bash

python setup.py install
pip install -U git+https://github.com/CenterForMedicalGeneticsGhent/WisecondorX
```

### Running WisecondorX
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python
from setuptools import setup, find_packages

version = '1.0.2'
version = '1.0.3'
dl_version = 'master' if 'dev' in version else '{}'.format(version)

setup(
Expand Down
6 changes: 3 additions & 3 deletions wisecondorX/include/plotter.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ for (ab in input$results_c){
start = as.integer(info[2]) + chr.ends[chr] + 1
end = as.integer(info[3]) + chr.ends[chr]
height = as.double(info[5])
rect(start, height, end, 0, col=color.XX[dot.cols[start] == color.X], border=color.XX[dot.cols[start] == color.X], lwd=0.1)
segments(start, height, end, height, col=lighter.grey, lwd=5 * mean(dot.cex[start:end], na.rm=T), lty=1)
rect(start, height, end, 0, col=color.XX[dot.cols[start] == color.X], border=NA)
}

# boxplots
Expand All @@ -232,7 +232,7 @@ if(any(is.infinite(c(y.sex.down, y.sex.up)))){

par(mar=c(2.5,3,1,1))
boxplot(box.list[23:length(chrs)], ylim=c(y.sex.down, y.sex.up),
bg=black, axes=F, outpch=16, ylab=expression('log'[2]*'(ratio)'))
bg=black, axes=F, outpch=16, ylab='')

par(xpd=NA)
text(1:(length(chrs) - 22), par("usr")[3], labels=labels[23:length(chrs)], srt=45, pos=1)
Expand Down Expand Up @@ -308,7 +308,7 @@ for (c in chrs){
start = as.integer(info[2]) + chr.ends[chr] + 1
end = as.integer(info[3]) + chr.ends[chr]
height = as.double(info[5])
rect(start, height, end, 0, col=color.XX[dot.cols[start] == color.X], border=NA)
rect(start, height, end, 0, col=color.XX[dot.cols[start] == color.X],border=color.XX[dot.cols[start] == color.X], lwd=0.1)
segments(start, height, end, height, col=lighter.grey, lwd=6 * mean(dot.cex[start:end], na.rm=T), lty=1)
}

Expand Down
2 changes: 2 additions & 0 deletions wisecondorX/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def tool_test(args):

if not ref_file['is_nipt']:
actual_gender = predict_gender(sample, ref_file['trained_cutoff'])
if args.gender:
actual_gender = args.gender
sample = gender_correct(sample, actual_gender)
else:
actual_gender = 'F'
Expand Down