Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Senizergues-Pommeret
ITPP
Commits
1d53cf19
Commit
1d53cf19
authored
Dec 02, 2014
by
Pauline Pommeret
Browse files
Description message
parent
fcc6e035
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_db.py
View file @
1d53cf19
...
...
@@ -6,6 +6,7 @@ Un fichier pour faire des tests
import
os
import
argparse
from
argparse
import
RawDescriptionHelpFormatter
import
sequence
from
lib.XylokExceptions
import
NoFastaProvided
...
...
@@ -16,13 +17,14 @@ if __name__ == "__main__":
DBCURSOR
=
database
.
PGCursor
()
# Use argparse to parse arguments. We first create a parser.
PARSER
=
argparse
.
ArgumentParser
(
description
=
"This program creates a postgresql database that holds the following data:
text
=
"This program creates a postgresql database that holds the following data:
- sequence information (name, accession number, sequence alphabet, description, etc)
- analysis parameters (Student table's alpha, number of bp considered as center, smooth window, etc)
- relevant information on the TRX signal FFT
- relevant information on the MD helicoidal parameters FFT
- Spearman and Pearson correlations between every helicoidal parameters for every frame of the MD
"
)
"
PARSER
=
argparse
.
ArgumentParser
(
description
=
text
,
formatter_class
=
RawDescriptionHelpFormatter
)
# Adding arguments to the parser
PARSER
.
add_argument
(
"-a"
,
"--alphabet"
,
type
=
str
,
default
=
"dna"
,
help
=
"[str] sequences alphabet (dna, rna, prot), currently only dna is implemented (default: 'dna')"
,
action
=
"store"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment