This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.
$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
zipper
A useful function to add to your ~/.bash_profile
or ~/.bashrc
file on macOS that automates custom zipping of files and folders. This function also checks to make sure that the resulting gzipped folder has the same date as the last date of modificationf or the folder.
Add in your path as a full shell
script by copying all below and saving into a file named zipper
located in your $PATH
(e.g. /usr/bin
), or copy and paste just the function into ~/.bash_profile
or ~/.bashrc
then restart Terminal.
#!/bin/sh
# zipper
unzipper
A useful function to add to your ~/.bash_profile
or ~/.bashrc
file on macOS that automates custom unzipping of regular-zipped or gzipped files and folders on Mac.
This is a companion function/script to my zipper
function posted in a Gist here.
Add in your path as a full shell
script by copying all below and saving into a file named unzipper
located in your $PATH
(e.g. /usr/bin
), or copy and paste just the function into ~/.bash_profile
or ~/.bashrc
then restart Terminal.
#!/bin/sh
Everyone loves GitHub-flavored Markdown. A problem of interest for some time now is rendering, editing, and saving Markdown with GitHub rendering style.
This is something that has interested me since at least 2018. Indeed, I have been using grip
for Markdown preview, conversion, and saving to PDF on macOS for years, as I detailed previously in one of my other popular Gists here.
Justin C. Bagley, September 11, 2017, Richmond, VA, USA
This markdown note describes how I used several software programs to process and eventually analyze SNPs from ddRAD tag loci (contigs) in SNAPP (Bryant et al. 2012), which is implemented in BEAST
(Drummond et al. 2012; Bouckaert et al. 2014) and is of broad interest in evolutionary biology for inferring species trees (e.g. Demos et al. 2015; Stange et al. 2017). I provide a perspective based on my experiences analyzing data generated using Next-Generation Sequencing on ddRADseq genomic libraries prepped for several species/lineages of Neotropical freshwater fishes from the Brazilian Cerrado (Central Brazil).
My account is given in first person and represents merely one way to analyze data in SNAPP
; there are other approaches, and other documents (e.g. this BFD* tutorial; L
Justin C. Bagley, Ph.D.
University of Missouri-St. Louis
This Gist provides a handful of utility shell scripts for use with dDocent
, which I wrote in March 2020. Specifically, these scripts are meant to be placed in dDocent run subfolders, in order to provide means of quickly cleaning up the workspace after failed or stopped (ctrl + C) runs. They are sufficiently generic to clean any dDocent
run folder, and they range from a minor clean to a deep clean (removes essentially everything generated during run).
deep_clean_ddocent_folder.sh
For those interested in running RAxML for phylogenetic inference using maximum-likelihood, here is a little function for cleaning up (within a RAxML run directory) after a failed RAxML run. Just add the following function to your ~/.bash_profile (on Mac) or ~/.bashrc (on Linux supercomputer) and do source ~/.bash_profile
(or simliar) to have it on hand from the cli.
## CLEAN RAXML RUN DIR (TO CLEAN UP AFTER FAILED RUNS, BEFORE RESUBMITTING TO QUEUE)
clean_raxml () {
rm ./*.txt; rm ./*.reduced; rm ./RAxML_info* ;
}
This markdown note describes how I used several software programs to process and eventually analyze SNPs from ddRAD tag loci in SNAPP (Bryant et al. 2012). The data were generated using Next-Generation Sequencing on ddRADseq genomic libraries prepped for several species/lineages of Neotropical freshwater fishes from the Brazilian Cerrado (Central Brazil).
My account is given in first person and represents merely one way to analyze data in SNAPP
; there are other approaches, and other documents (e.g. the Leaché et al. BDF* tutorial doc) also present a general approach. However, all the brief SNAPP guides and tutorials that are currently available require the user to consult the manual, A Rought Guide to SNAPP
, written by Bouckaert and Bryant. Since SNAPP is amply covered by Bryant et al. (2012), Leaché et al. (2014), and other papers, I'll skip the introduction to SNAPP and assume the reader is acquainted with the details of the m