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

Edit regions output #303

Merged
merged 2 commits into from
Nov 26, 2024
Merged
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
1 change: 1 addition & 0 deletions docs/user/RGP/rgpOutputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The file has the following format :
| stop | The stop position of the RGP in the contig. |
| length | The length of the RGP in nucleotide |
| coordinates | The coordinates of the region. If the region overlap the contig edges will be right with join coordinates syntax (*i.e* 1523..1758,1..57) |
| score | Score of the RGP. |
| contigBorder | This is a boolean column. If the RGP is on a contig border it will be True, otherwise, it will be False. This often can indicate that, if an RGP is on a contig border it is probably not complete. |
| wholeContig | This is a boolean column. If the RGP is an entire contig, it will be True, and False otherwise. If a RGP is an entire contig it can possibly be a plasmid, a region flanked with repeat sequences or a contaminant. |

Expand Down
2 changes: 2 additions & 0 deletions ppanggolin/formats/writeFlatPangenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,7 @@ def write_rgp_table(regions: Set[Region], output: Path, compress: bool = False):
"stop",
"length",
"coordinates",
"score",
"contigBorder",
"wholeContig",
]
Expand All @@ -1117,6 +1118,7 @@ def write_rgp_table(regions: Set[Region], output: Path, compress: bool = False):
"stop": region.stop,
"length": region.length,
"coordinates": region.string_coordinates(),
"score": region.score,
"contigBorder": region.is_contig_border,
"wholeContig": region.is_whole_contig,
}
Expand Down
8 changes: 8 additions & 0 deletions ppanggolin/workflow/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,14 @@ def add_workflow_args(parser: argparse.ArgumentParser):
"it will be assigned to its own unique cluster as a singleton.",
)

optional.add_argument(
"--use_pseudo",
required=False,
action="store_true",
help="In the context of provided annotation, use this option to read pseudogenes. "
"(Default behavior is to ignore them)",
)

optional.add_argument(
"-K",
"--nb_of_partitions",
Expand Down
Loading