Skip to content

Commit

Permalink
quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
y9c committed Oct 11, 2024
1 parent bc31a2a commit dd8182c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions cutseq/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ def __init__(self):
# PBAT: method use random primer to add both p5 and p7,
# and there might be random tail at the 5' end of both reads
"PBAT": "ACACGACGCTCTTCCGATCTXXXXXX<XXXXXXAGATCGGAAGAGCACACGTC",
# Nextera, for ATAC-seq, without UMI
"NEXTERA": "AGATGTGTATAAGAGACAG>CTGTCTCTTATACACATCT",
}


Expand Down Expand Up @@ -808,9 +810,7 @@ def main():
parser.add_argument(
"-A",
"--adapter-name",
type=str.upper,
choices=BUILDIN_ADAPTERS.keys(),
help="Built-in adapter name.",
help="Built-in adapter name. choices:\n" + ",".join(BUILDIN_ADAPTERS.keys()),
)
parser.add_argument(
"-O",
Expand Down Expand Up @@ -926,8 +926,9 @@ def main():
else:
args.adapter_scheme = BUILDIN_ADAPTERS.get(args.adapter_name.upper())
if args.adapter_scheme is None:
logging.error("Adapter name is not valid.")
sys.exit(1)
logging.error("Adapter name is not valid. Fallback to adatper scheme")
args.adapter_scheme = args.adapter_name
# sys.exit(1)
elif args.adapter_scheme is None:
logging.error("Adapter scheme or name is required.")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cutseq"
version = "0.0.52"
version = "0.0.54"
description = "Automatically cut adapter / barcode / UMI from NGS data"
authors = ["Ye Chang <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit dd8182c

Please sign in to comment.