Skip to content

Commit

Permalink
Merge pull request #303 from LCoffion/edit_RGP_output
Browse files Browse the repository at this point in the history
Edit regions output
  • Loading branch information
axbazin authored Nov 26, 2024
2 parents 583e0cb + f010295 commit 4ec681f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
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

0 comments on commit 4ec681f

Please sign in to comment.