Skip to content

Commit

Permalink
Add intro message and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Jul 5, 2018
1 parent 78bc0ef commit 7129eac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions badread/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
from .qscore_model import QScoreModel, get_qscores
from .fragment_lengths import FragmentLengths
from .identities import Identities
from .version import __version__
from . import settings


def simulate(args):
print_intro()
if args.seed is not None:
random.seed(args.seed)
np.random.seed(args.seed)
Expand Down Expand Up @@ -475,3 +477,9 @@ def load_reference(reference, output=sys.stderr):
total_size = sum(len(s) for s in ref_seqs.values())
print(f' total size: {total_size:,} bp', file=output)
return ref_seqs, ref_depths, ref_circular


def print_intro():
print('', file=sys.stderr)
print(f'Badread v{__version__}', file=sys.stderr)
print(f'long read simulation', file=sys.stderr)
2 changes: 1 addition & 1 deletion badread/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
If not, see <http://www.gnu.org/licenses/>.
"""

__version__ = '0.1.0'
__version__ = '0.1.1'

0 comments on commit 7129eac

Please sign in to comment.