-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from faridrashidi/develop
release v0.0.21
- Loading branch information
Showing
55 changed files
with
2,093 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.py linguist-detectable=true | ||
*Makefile linguist-detectable=false | ||
*.md linguist-detectable=false | ||
*.h linguist-detectable=false | ||
*.cpp linguist-detectable=false | ||
*.rst linguist-detectable=false | ||
*.yaml linguist-detectable=false | ||
*.yml linguist-detectable=false | ||
*.cfg linguist-detectable=false | ||
*.txt linguist-detectable=false | ||
*.pyx linguist-detectable=false | ||
*.R linguist-detectable=false | ||
*.sh linguist-detectable=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
apt_packages: | ||
- pandoc | ||
|
||
sphinx: | ||
builder: html | ||
configuration: docs/source/conf.py | ||
fail_on_warning: false | ||
|
||
formats: | ||
- htmlzip | ||
|
||
build: | ||
image: latest | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: docs/requirements_rtfd.txt | ||
|
||
formats: | ||
- htmlzip | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,7 @@ Please see our `preprint`_ on **bioRxiv** to learn more. | |
|
||
Support | ||
------- | ||
Feel free to submit an `issue <https://github.com/faridrashidi/trisicell/issues/new/choose>`_ | ||
or send us an `email <mailto:[email protected]>`_. | ||
Feel free to submit an `issue <https://github.com/faridrashidi/trisicell/issues/new/choose>`_. | ||
Your help to improve Trisicell is highly appreciated. | ||
|
||
Trisicell was developed in collaboration between the `Cancer Data Science Laboratory (CDSL) <https://ccr.cancer.gov/staff-directory/s-cenk-sahinalp>`_ and the `Laboratory of Cancer Biology and Genetics (LCBG) <https://ccr.cancer.gov/staff-directory/glenn-merlino>`_ at the `National Cancer Institute (NCI) <https://www.cancer.gov>`_. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
installation | ||
release_notes | ||
citing | ||
references | ||
|
||
.. toctree:: | ||
:caption: Docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
__author__ = ", ".join(["Farid Rashidi"]) | ||
__maintainer__ = ", ".join(["Farid Rashidi"]) | ||
__email__ = ", ".join(["[email protected]"]) | ||
__version__ = "0.0.20" | ||
__version__ = "0.0.21" | ||
|
||
if platform == "linux" or platform == "linux2": | ||
os.environ["CC"] = "g++" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ | |
__author__ = ", ".join(["Farid Rashidi"]) | ||
__maintainer__ = ", ".join(["Farid Rashidi"]) | ||
__email__ = ", ".join(["[email protected]"]) | ||
__version__ = "0.0.20" | ||
__version__ = "0.0.21" | ||
__all__ = (datasets, io, logg, pl, pp, settings, tl, ul) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import os | ||
|
||
import click | ||
|
||
import trisicell as tsc | ||
|
||
|
||
@click.command(short_help="Run gpps.") | ||
@click.argument( | ||
"genotype_file", | ||
required=True, | ||
type=click.Path( | ||
exists=True, file_okay=True, dir_okay=False, readable=True, resolve_path=True | ||
), | ||
) | ||
@click.argument( | ||
"alpha", | ||
required=True, | ||
type=float, | ||
) | ||
@click.argument( | ||
"beta", | ||
required=True, | ||
type=float, | ||
) | ||
@click.option( | ||
"--k_dollo", | ||
"-k", | ||
default=0, | ||
type=int, | ||
show_default=True, | ||
help="k-Dollo.", | ||
) | ||
@click.option( | ||
"--max_del", | ||
"-d", | ||
default=-1, | ||
type=int, | ||
show_default=True, | ||
help="Maximum number of deletion allowed.", | ||
) | ||
@click.option( | ||
"--neighbor_size", | ||
"-s", | ||
default=30, | ||
type=int, | ||
show_default=True, | ||
help="Hill climbing neighborhood size.", | ||
) | ||
@click.option( | ||
"--n_iters", | ||
"-l", | ||
default=100, | ||
type=int, | ||
show_default=True, | ||
help="Hill climbing maximum iterations.", | ||
) | ||
@click.option( | ||
"--time_limit", | ||
"-t", | ||
default=86400, | ||
type=int, | ||
show_default=True, | ||
help="Time limit of the program (in second).", | ||
) | ||
@click.option( | ||
"--n_threads", | ||
"-p", | ||
default=1, | ||
type=int, | ||
show_default=True, | ||
help="Number of threads.", | ||
) | ||
def gpps( | ||
genotype_file, | ||
alpha, | ||
beta, | ||
k_dollo, | ||
max_del, | ||
neighbor_size, | ||
n_iters, | ||
time_limit, | ||
n_threads, | ||
): | ||
"""gpps. | ||
an ILP-based approach for inferring cancer progression with mutation losses from | ||
single cell data :cite:`gpps`. | ||
trisicell gpps input.SC 0.0001 0.1 -k 0 -s 30 -l 100 -t 86400 -p 1 | ||
""" | ||
|
||
outfile = os.path.splitext(genotype_file)[0] | ||
|
||
tsc.settings.verbosity = "info" | ||
tsc.settings.logfile = f"{outfile}.gpps.log" | ||
|
||
df_in = tsc.io.read(genotype_file) | ||
|
||
if alpha == 0: | ||
alpha = 0.000000000001 | ||
df_out = tsc.tl.gpps( | ||
df_in, | ||
alpha=alpha, | ||
beta=beta, | ||
k_dollo=k_dollo, | ||
max_del=max_del, | ||
neighbor_size=neighbor_size, | ||
n_iters=n_iters, | ||
time_limit=time_limit, | ||
n_threads=n_threads, | ||
) | ||
tsc.io.write(df_out, f"{outfile}.gpps.CFMatrix") | ||
|
||
return None |
Oops, something went wrong.