Skip to content

Commit

Permalink
add extra info
Browse files Browse the repository at this point in the history
  • Loading branch information
JFsanchezherrero committed Sep 7, 2020
1 parent ca7418b commit 8e0ae62
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/spaTyper
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,16 @@ parser.add_argument("-e", '--do_enrich', action="store_true", default=False,
help="Do PCR product enrichment. [Default: False]")
parser.add_argument('--version', action='version', version='%(prog)s 0.2.1')
parser.add_argument('--debug', action='store_true', default=False, help='Developer messages')
parser.add_argument('--info', action='store_true', default=False, help='Prints additional information')
args = parser.parse_args()
#####################################################

#######################
## Print extra info
if args.info:
print (spaTyper.utils.extra_info())
exit()

#######################
## Let's go
#######################
Expand Down
21 changes: 21 additions & 0 deletions spaTyper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@
This script contains several useful functions employed along the spa_typing code.
"""

####################################################
def extra_info():

information = '''
spaTyper: https://github.com/HCGB-IGTP/spaTyper
Typification of the repeat region of the Staphylococcus protein A gene (spa). Repeats are assigned a
numerical code and the spa-type is deduced from the order of specific repeats.
It prints spa type to stdout - egenomics letter combination and the ridom spa type.
If multiple pcr products are found will print spa types for each product.
It will download sparepeats.fasta and spatypes.txt from the ridom server (https://spaserver2.ridom.de/)
to repository directory if files not provided.
Original code: mjsull. Modified by: JFSanchezHerrero
'''

return (information)

####################################################
def create_folder(pathProvided):
## create subfolder ##
Expand Down

0 comments on commit 8e0ae62

Please sign in to comment.