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

Poc/methylation #143

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Poc/methylation #143

wants to merge 7 commits into from

Conversation

dennishendriksen
Copy link
Contributor

No description provided.

Copy link

sonarcloud bot commented Jan 24, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

67.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@dennishendriksen dennishendriksen changed the title Po c/methylation Poc/methylation Feb 8, 2024
Copy link
Contributor Author

@dennishendriksen dennishendriksen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build failed with a Critical, Major and Minor code issue: https://sonarcloud.io/project/issues?id=molgenis_vip-report&pullRequest=143&resolved=false&inNewCodePeriod=true as well as test coverage being too low.

Failed conditions

[67.5% Coverage on New Code](https://sonarcloud.io/component_measures?id=molgenis_vip-report&pullRequest=143&metric=new_coverage&view=list) (required ≥ 80%)

@@ -33,10 +33,14 @@ usage: java -jar vcf-report.jar -i <arg> [-o <arg>] [-f] [-t <arg>] [-pb
-g,--genes <arg> Genes file to be used as reference track in the
genome browser, UCSC NCBI RefSeq GFF file
(gff.gz or gff3.gz).
-c,--cram <arg> Comma-separated list of sample-bam files
-c,--cram <arg> Comma-separated list of sample-cram files
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sharp

}

private static boolean isFeature(List<ContigInterval> contigIntervals, BedmethylLine bedmethylLine) {
for (ContigInterval contigInterval : contigIntervals) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a more efficient solution would be to create a map from Contig to ContigInterval before looping through .bed lines. this would speed up the slicing of the bedmethyl

return false;
}

private static boolean isOverlappingFeature(BedmethylLine bedmethylLine, ContigInterval contigInterval) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would have been nice to refactor the code copied from GenesFilter.java in order to reuse this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants