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

Implement scaling in uniwig #53

Open
Tracked by #30
donaldcampbelljr opened this issue Dec 12, 2024 · 0 comments
Open
Tracked by #30

Implement scaling in uniwig #53

donaldcampbelljr opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@donaldcampbelljr
Copy link
Member

donaldcampbelljr commented Dec 12, 2024

Original bamsitesToWig in PEPATAC scales counts within the perl script based on a float obtained from aligned_reads:

			if ($countIndex % $stepSize == 0) {
                $scaledCount = $currentCount/$scale;
				print "$countIndex\t$scaledCount\n";
			}

Original command:

            cmd = tool_path("bamSitesToWig.py")
            cmd += " -i " + rmdup_bam
            cmd += " -c " + res.chrom_sizes
            cmd += " -w " + smooth_target
            cmd += " -m " + "atac"
            cmd += " -p " + str(int(max(1, int(pm.cores) * 2/3)))
            cmd += " --variable-step"
            if not args.no_scale:
                ar = float(pm.get_stat("Aligned_reads"))
                if ar:
                    cmd += " --scale " + str(ar)
@donaldcampbelljr donaldcampbelljr changed the title Scaling is used in bamSitesToWig.py. Currently, uniwig does not scale counts. Should it? Implement scaling in uniwig Dec 12, 2024
@donaldcampbelljr donaldcampbelljr added uniwig enhancement New feature or request labels Dec 12, 2024
donaldcampbelljr added a commit that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant