Skip to content

Instantly share code, notes, and snippets.

View lezsakdomi's full-sized avatar

Lezsák Domonkos lezsakdomi

View GitHub Profile
@chasemc
chasemc / fasta_to_sqlite.py
Created August 24, 2023 19:36
Convert a fasta file to sqlite, assumes defline is a unique id and there are no duplicates
#!/usr/bin/python3
# MIT License
# Copyright (c) Chase M. Clark
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@asimjalis
asimjalis / perl-shell.md
Created December 8, 2012 15:34
How to run Perl in an interactive shell

How to run Perl in an interactive shell

by Asim Jalis, MetaProse.com

An interactive shell is useful for quickly trying out different commands. While Ruby, Python, and Clojure come with interactive shells, Perl does not. However, it is easy to create one using this one-liner on Unix systems:

perl -e 'do{print("perl> ");$_x=<>;chomp $_x;print(eval($_x)."\n")}while($_x ne "q")'