This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "mdpi\\.com", | |
"elements": { | |
"dc.source": { | |
"selector": "//meta[@name='dc.source']", | |
"attribute": "content" | |
}, | |
"figure": { | |
"selector": "//div[contains(@id, 'fig')]/div/img", | |
"attribute": "src" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "mdpi", | |
"elements": { | |
"dc.source": { | |
"selector": "//meta[@name='dc.source']", | |
"attribute": "content" | |
}, | |
"figure_img": { | |
"selector": "//div[contains(@id, 'fig')]/div/img", | |
"attribute": "src", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL "http://www.journaltocs.ac.uk/api/journals/1420-3049?output=articles&[email protected]" | grep '\<link\>' | grep -oEi 'http[^\<]*' | sort | uniq | sed 's/$/\/htm/g' > mdpi_jtoclist.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $(uname -v) =~ Debian ]]; then | |
echo "Debian detected: installing backports" | |
echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install -y nodejs | |
apt-get install -y nodejs-legacy | |
curl --insecure https://www.npmjs.org/install.sh | bash | |
fi | |
if [[ $(uname -v) =~ Ubuntu ]]; then | |
echo "Ubuntu detected: using Chris Lea's PPA repo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "installing phantomJS" | |
if [ `getconf LONG_BIT` = "64" ] | |
then | |
echo "64-bit system detected" | |
PHANTOMVER=phantomjs-1.9.7-linux-x86_64 | |
else | |
echo "32-bit system detected" | |
PHANTOMVER=phantomjs-1.9.7-linux-i686 | |
fi | |
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMVER.tar.bz2 && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# have your URLs in a file called URLS | |
parallel -j1 curl -v 'http://api.bit.ly/shorten?version=2.0.1\&longUrl={}\&login=bitlyapidemo\&apiKey=ABC123' < URLS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y software-properties-common build-essential python-software-properties libfontconfig1 git | |
add-apt-repository -y ppa:chris-lea/node.js | |
apt-get update | |
apt-get install -y nodejs | |
npm install --global quickscrape | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
gem install trollop | |
git clone https://github.com/ContentMine/journal-scrapers.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300006/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300007/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300008/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300009/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300010/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300011/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300012/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300013/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300014/pdf | |
http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300015/pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'csv' | |
require 'rubygems' | |
require 'trollop' | |
class Express | |
attr_accessor :bundle_id,:target_id,:length,:eff_length,:tot_counts,:uniq_counts | |
attr_accessor :est_counts,:eff_counts,:ambig_distr_alpha,:ambig_distr_beta,:fpkm | |
attr_accessor :fpkm_conf_low,:fpkm_conf_high,:solvable,:tpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# trim-batch | |
# | |
# Take in a set of fastq files and run trimmomatic on each | |
# | |
# You MUST specify the location of the trimmomatic JAR | |
# | |
# Richard Smith-Unna ([email protected]) |