This file contains 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/perl | |
# | |
# ---------------------------------------- # | |
# Daniel Smith - October 1st, 2012 # | |
# Argonne National Laboratory # | |
# Creative Commons License BY-SA 3.0 # | |
# ---------------------------------------- # | |
# | |
use strict; |
This file contains 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/perl | |
# | |
# ---------------------------------------- # | |
# Daniel Smith - October 1st, 2012 # | |
# Argonne National Laboratory # | |
# Creative Commons License BY-SA 3.0 # | |
# ---------------------------------------- # | |
# | |
use strict; |
This file contains 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/perl | |
#--------------------------------------------------------------------------# | |
# Description: Combines multiple peptide readings into protein- # | |
# centric data # | |
# # | |
# Author: Daniel Patrick Smith # | |
# Version: 2.0 / November 29th, 2011 # | |
# Affiliation: Giovannoni Laboratory, Oregon State University # | |
# License: GNU General Public License v3 # |
This file contains 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/perl | |
#--------------------------------------------------------------# | |
# Author: Daniel Patrick Smith # | |
# Version: 1.0 / April 21st, 2010 # | |
# Affiliation: Giovannoni Laboratory, Oregon State University # | |
# Copyright: GNU General Public License v3 # | |
# Please Cite: Sowell et al, ISME (2009) 3, 93-105 # | |
#--------------------------------------------------------------# |
This file contains 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
function bytesSI(bytes) { | |
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return bytes; | |
var suffix = ' Bytes'; | |
var suffixes = [' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB']; | |
while (suffixes.length && bytes >= 1000) { | |
bytes = (bytes + 0.0001) / 1000; | |
suffix = suffixes.shift(); | |
} | |
return bytes.toString().substr(0,4).concat(suffix).replace(". ", " "); | |
}; |