-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
81 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from . import alignment, irods, rna, basic | ||
from . import alignment, basic, irods, rna | ||
from .helpers import * |
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import click | ||
import os | ||
from tabulate import tabulate | ||
import pandas as pd | ||
|
||
@click.command("history") | ||
import click | ||
import pandas as pd | ||
from tabulate import tabulate | ||
|
||
@click.option("--last", required=False, help="Retrieve last n commands", | ||
default=10, type = int) | ||
|
||
@click.command("history") | ||
@click.option( | ||
"--last", required=False, help="Retrieve last n commands", default=10, type=int | ||
) | ||
@click.option( | ||
"--all", | ||
default=False, | ||
is_flag=True, | ||
required=False, | ||
help="Retrieve all history", | ||
) | ||
|
||
def history(last, all): | ||
CWD = os.environ['CWD'] | ||
CWD = os.environ["CWD"] | ||
hist_file = os.path.join(CWD, ".pap/") + "hist" | ||
if not os.path.exists(hist_file): | ||
click.echo("No history file present") | ||
return 0 | ||
hist = pd.read_csv(hist_file, index_col = 0) | ||
hist = pd.read_csv(hist_file, index_col=0) | ||
if all: | ||
print(tabulate(hist, headers='keys', tablefmt='plain')) | ||
print(tabulate(hist, headers="keys", tablefmt="plain")) | ||
else: | ||
print(tabulate(hist.tail(last), headers='keys', tablefmt='plain')) | ||
print(tabulate(hist.tail(last), headers="keys", tablefmt="plain")) | ||
return 0 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gex_only = True | ||
sim_doublet_ratio = 5 | ||
min_cells_cutoff = 50 # min number of cells a gene is present for it to be realised | ||
min_cells_cutoff = 50 # min number of cells a gene is present for it to be realised |