Skip to content

Add support for HIC v9 files, weight column and bump version #69

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
11 changes: 10 additions & 1 deletion hic2cool/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ def main():
type=int,
default=1
)
convert_subparser.add_argument(
"-N", "--norm-method",
help="normalization method that should be used for the weight-vector. May "
"be any of the normalizations provided in the hic files, e.g. VC, VC_SQRT, SCALE. "
"The weight of bin i count will be determined by, for instance, weight_i = VC_i/RAW_i",
type=str,
default=""
)

# add a subparser for the 'update' command
update_help = 'update a cooler file produced by hic2cool'
Expand Down Expand Up @@ -82,8 +90,9 @@ def main():
(primary_namespace, remaining) = primary_parser.parse_known_args()
# lastly, get the mode and specific args
args = secondary_parser.parse_args(args=remaining, namespace=primary_namespace)
print(args)
if args.mode == 'convert':
hic2cool_convert(args.infile, args.outfile, args.resolution, args.nproc, args.warnings, args.silent)
hic2cool_convert(args.infile, args.outfile, args.resolution, args.norm_method, args.nproc, args.warnings, args.silent)
elif args.mode == 'update':
hic2cool_update(args.infile, args.outfile, args.warnings, args.silent)
elif args.mode == 'extract-norms':
Expand Down
2 changes: 1 addition & 1 deletion hic2cool/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.3"
__version__ = "1.1.0"
Loading