-
Notifications
You must be signed in to change notification settings - Fork 0
feat: added ntSynt and ntSynt-viz for synteny analysis + bug fix #16
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
rabioinf
wants to merge
9
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
40bd62a
chore: fix typo.
rabioinf 3c3d61a
fix: update bakta version.
rabioinf af66e43
feat: add synteny anlaysis and viz using ntSynt
rabioinf fa92fb8
fix: minor change in config
rabioinf 4f0f416
chore: update ref in README
rabioinf 3afccf5
fix: forgot 'extra' parameter in synteny detection.
rabioinf 49a451e
fix: add ref to synteny if defined in config; added ref_sequence for …
rabioinf 75f9965
fix: remove prefix param; closes #18
rabioinf 3a0133a
feat: add checkM tool; closes #14
rabioinf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ channels: | |
| - bioconda | ||
| - nodefaults | ||
| dependencies: | ||
| - bakta=1.11.4 | ||
| - bakta=1.12 | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| name: bakta | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| - nodefaults | ||
| dependencies: | ||
| - ntsynt=1.0.5 | ||
| - ntsynt-viz=1.0.4 | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # PREPARE NTSYNT-VIZ NAME MAPPING | ||
| # ----------------------------------------------------------------------------- | ||
| # | ||
| # This script prepares a mapping of sample names to the names to be used in | ||
| # ntSynt-viz. This is needed to ensure that the sample names in the ntSynt-viz | ||
| # ribbon plot are the same as the sample names in the sample sheet. | ||
|
|
||
| import os | ||
| import sys | ||
| import pandas as pd | ||
|
|
||
| sys.stderr = open(snakemake.log[0], "w", buffering=1) | ||
| sample_sheet = snakemake.params["sample_sheet"] | ||
| outfile = snakemake.output[0] | ||
|
|
||
| # read sample sheet | ||
| try: | ||
| df_samples = pd.read_csv(sample_sheet) | ||
| sys.stderr.write(f"Read sample sheet from {snakemake.params['sample_sheet']}\n") | ||
| except Exception as e: | ||
| sys.stderr.write( | ||
| f"Error reading sample sheet from {snakemake.params['sample_sheet']}: {e}\n" | ||
| ) | ||
|
|
||
| df_samples["file"] = df_samples["file"].apply(lambda x: os.path.basename(x)) | ||
|
|
||
| try: | ||
| df_samples[["file", "sample"]].to_csv(outfile, sep="\t", index=False, header=False) | ||
| sys.stderr.write(f"Wrote ntSynt-viz sample name mapping to {outfile}\n") | ||
| except Exception as e: | ||
| sys.stderr.write( | ||
| f"Error writing ntSynt-viz sample name mapping to {outfile}: {e}\n" | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.