Skip to content

Instantly share code, notes, and snippets.

View BjornFJohansson's full-sized avatar
😃
happy!

Björn Johansson BjornFJohansson

😃
happy!
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2011-2017 Alexis Bienvenue <paamc@passoire.fr>
This file is part of Auto-Multiple-Choice
Auto-Multiple-Choice is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 2 of
#!/home/bjorn/miniforge3/envs/bjorn311/bin python3
# -*- coding: utf-8 -*-
# https://pdfstandalone.com/en/merge-pdf
import sys
from pathlib import Path
from borb.pdf.document.document import Document
from borb.pdf.pdf import PDF
from tqdm import tqdm
script, *cliarg = sys.argv
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pathlib import Path
import urllib
import re, os
from urllib.parse import urlparse
from string import punctuation
pages = sorted(Path('.').glob('*.md'))
# Sometimes wp creates pages with ~ (tilde). Rename these
tildepages = [p for p in pages if "~" in str(p)]
for tildepage in tildepages:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Flow Cytometry Standard file format --> csv
# https://stackoverflow.com/questions/70348405/how-to-convert-lmd-file-to-csv-flow-cytometry-data
# https://pypi.org/project/fcsparser/
"""
This script collects all files in the same directory as the script (or cwd) with
the file ending "fcs". These files are assumed to be in the Flow Cytometry Standard file format
anhd converted to CSV using pandas, and fcsparser. To install requirements:
pip install fcsparser pandas
@BjornFJohansson
BjornFJohansson / rotate.py
Created February 3, 2023 12:07
rotate circular sequence
# Now, for an example with features, we’ll use a GenBank file.
# Suppose you have a circular genome:
from pydna.genbank import genbank
record = genbank("NC_005816.1")
print(record.seq[:30])
# TGTAACGAACGGTGCAATAGTGATCCACAC
@BjornFJohansson
BjornFJohansson / gist:b7331f92fd1d0ea51f24fbe9e03183f6
Created December 1, 2022 12:28 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.