bioinformatics.scm 569 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
  3. ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
  4. ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
  5. ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
  6. ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
  7. ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
  8. ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
  9. ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
  10. ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
  11. ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
  12. ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
  13. ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
  14. ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
  15. ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  16. ;;;
  17. ;;; This file is part of GNU Guix.
  18. ;;;
  19. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  20. ;;; under the terms of the GNU General Public License as published by
  21. ;;; the Free Software Foundation; either version 3 of the License, or (at
  22. ;;; your option) any later version.
  23. ;;;
  24. ;;; GNU Guix is distributed in the hope that it will be useful, but
  25. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  26. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27. ;;; GNU General Public License for more details.
  28. ;;;
  29. ;;; You should have received a copy of the GNU General Public License
  30. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  31. (define-module (gnu packages bioinformatics)
  32. #:use-module ((guix licenses) #:prefix license:)
  33. #:use-module (guix packages)
  34. #:use-module (guix utils)
  35. #:use-module (guix download)
  36. #:use-module (guix git-download)
  37. #:use-module (guix hg-download)
  38. #:use-module (guix build-system ant)
  39. #:use-module (guix build-system gnu)
  40. #:use-module (guix build-system cmake)
  41. #:use-module (guix build-system haskell)
  42. #:use-module (guix build-system ocaml)
  43. #:use-module (guix build-system perl)
  44. #:use-module (guix build-system python)
  45. #:use-module (guix build-system r)
  46. #:use-module (guix build-system ruby)
  47. #:use-module (guix build-system scons)
  48. #:use-module (guix build-system trivial)
  49. #:use-module (gnu packages)
  50. #:use-module (gnu packages autotools)
  51. #:use-module (gnu packages algebra)
  52. #:use-module (gnu packages base)
  53. #:use-module (gnu packages bash)
  54. #:use-module (gnu packages bison)
  55. #:use-module (gnu packages bioconductor)
  56. #:use-module (gnu packages boost)
  57. #:use-module (gnu packages check)
  58. #:use-module (gnu packages compression)
  59. #:use-module (gnu packages cpio)
  60. #:use-module (gnu packages cran)
  61. #:use-module (gnu packages curl)
  62. #:use-module (gnu packages documentation)
  63. #:use-module (gnu packages databases)
  64. #:use-module (gnu packages datastructures)
  65. #:use-module (gnu packages file)
  66. #:use-module (gnu packages flex)
  67. #:use-module (gnu packages gawk)
  68. #:use-module (gnu packages gcc)
  69. #:use-module (gnu packages gd)
  70. #:use-module (gnu packages gtk)
  71. #:use-module (gnu packages glib)
  72. #:use-module (gnu packages graph)
  73. #:use-module (gnu packages groff)
  74. #:use-module (gnu packages guile)
  75. #:use-module (gnu packages guile-xyz)
  76. #:use-module (gnu packages haskell)
  77. #:use-module (gnu packages haskell-check)
  78. #:use-module (gnu packages haskell-web)
  79. #:use-module (gnu packages image)
  80. #:use-module (gnu packages imagemagick)
  81. #:use-module (gnu packages java)
  82. #:use-module (gnu packages java-compression)
  83. #:use-module (gnu packages jemalloc)
  84. #:use-module (gnu packages dlang)
  85. #:use-module (gnu packages linux)
  86. #:use-module (gnu packages logging)
  87. #:use-module (gnu packages machine-learning)
  88. #:use-module (gnu packages man)
  89. #:use-module (gnu packages maths)
  90. #:use-module (gnu packages mpi)
  91. #:use-module (gnu packages ncurses)
  92. #:use-module (gnu packages ocaml)
  93. #:use-module (gnu packages pcre)
  94. #:use-module (gnu packages parallel)
  95. #:use-module (gnu packages pdf)
  96. #:use-module (gnu packages perl)
  97. #:use-module (gnu packages perl-check)
  98. #:use-module (gnu packages pkg-config)
  99. #:use-module (gnu packages popt)
  100. #:use-module (gnu packages protobuf)
  101. #:use-module (gnu packages python)
  102. #:use-module (gnu packages python-compression)
  103. #:use-module (gnu packages python-web)
  104. #:use-module (gnu packages python-xyz)
  105. #:use-module (gnu packages readline)
  106. #:use-module (gnu packages ruby)
  107. #:use-module (gnu packages serialization)
  108. #:use-module (gnu packages shells)
  109. #:use-module (gnu packages statistics)
  110. #:use-module (gnu packages swig)
  111. #:use-module (gnu packages tbb)
  112. #:use-module (gnu packages tex)
  113. #:use-module (gnu packages texinfo)
  114. #:use-module (gnu packages textutils)
  115. #:use-module (gnu packages time)
  116. #:use-module (gnu packages tls)
  117. #:use-module (gnu packages vim)
  118. #:use-module (gnu packages web)
  119. #:use-module (gnu packages xml)
  120. #:use-module (gnu packages xorg)
  121. #:use-module (srfi srfi-1)
  122. #:use-module (ice-9 match))
  123. (define-public aragorn
  124. (package
  125. (name "aragorn")
  126. (version "1.2.38")
  127. (source (origin
  128. (method url-fetch)
  129. (uri (string-append
  130. "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
  131. version ".tgz"))
  132. (sha256
  133. (base32
  134. "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
  135. (build-system gnu-build-system)
  136. (arguments
  137. `(#:tests? #f ; there are no tests
  138. #:phases
  139. (modify-phases %standard-phases
  140. (delete 'configure)
  141. (replace 'build
  142. (lambda _
  143. (invoke "gcc"
  144. "-O3"
  145. "-ffast-math"
  146. "-finline-functions"
  147. "-o"
  148. "aragorn"
  149. (string-append "aragorn" ,version ".c"))
  150. #t))
  151. (replace 'install
  152. (lambda* (#:key outputs #:allow-other-keys)
  153. (let* ((out (assoc-ref outputs "out"))
  154. (bin (string-append out "/bin"))
  155. (man (string-append out "/share/man/man1")))
  156. (install-file "aragorn" bin)
  157. (install-file "aragorn.1" man))
  158. #t)))))
  159. (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
  160. (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
  161. (description
  162. "Aragorn identifies transfer RNA, mitochondrial RNA and
  163. transfer-messenger RNA from nucleotide sequences, based on homology to known
  164. tRNA consensus sequences and RNA structure. It also outputs the secondary
  165. structure of the predicted RNA.")
  166. (license license:gpl2)))
  167. (define-public bamm
  168. (package
  169. (name "bamm")
  170. (version "1.7.3")
  171. (source (origin
  172. (method git-fetch)
  173. ;; BamM is not available on pypi.
  174. (uri (git-reference
  175. (url "https://github.com/Ecogenomics/BamM.git")
  176. (commit version)
  177. (recursive? #t)))
  178. (file-name (git-file-name name version))
  179. (sha256
  180. (base32
  181. "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
  182. (modules '((guix build utils)))
  183. (snippet
  184. `(begin
  185. ;; Delete bundled htslib.
  186. (delete-file-recursively "c/htslib-1.3.1")
  187. #t))))
  188. (build-system python-build-system)
  189. (arguments
  190. `(#:python ,python-2 ; BamM is Python 2 only.
  191. ;; Do not use bundled libhts. Do use the bundled libcfu because it has
  192. ;; been modified from its original form.
  193. #:configure-flags
  194. (let ((htslib (assoc-ref %build-inputs "htslib")))
  195. (list "--with-libhts-lib" (string-append htslib "/lib")
  196. "--with-libhts-inc" (string-append htslib "/include/htslib")))
  197. #:phases
  198. (modify-phases %standard-phases
  199. (add-after 'unpack 'autogen
  200. (lambda _
  201. (with-directory-excursion "c"
  202. (let ((sh (which "sh")))
  203. (for-each make-file-writable (find-files "." ".*"))
  204. ;; Use autogen so that 'configure' works.
  205. (substitute* "autogen.sh" (("/bin/sh") sh))
  206. (setenv "CONFIG_SHELL" sh)
  207. (invoke "./autogen.sh")))
  208. #t))
  209. (delete 'build)
  210. ;; Run tests after installation so compilation only happens once.
  211. (delete 'check)
  212. (add-after 'install 'wrap-executable
  213. (lambda* (#:key outputs #:allow-other-keys)
  214. (let* ((out (assoc-ref outputs "out"))
  215. (path (getenv "PATH")))
  216. (wrap-program (string-append out "/bin/bamm")
  217. `("PATH" ":" prefix (,path))))
  218. #t))
  219. (add-after 'wrap-executable 'post-install-check
  220. (lambda* (#:key inputs outputs #:allow-other-keys)
  221. (setenv "PATH"
  222. (string-append (assoc-ref outputs "out")
  223. "/bin:"
  224. (getenv "PATH")))
  225. (setenv "PYTHONPATH"
  226. (string-append
  227. (assoc-ref outputs "out")
  228. "/lib/python"
  229. (string-take (string-take-right
  230. (assoc-ref inputs "python") 5) 3)
  231. "/site-packages:"
  232. (getenv "PYTHONPATH")))
  233. ;; There are 2 errors printed, but they are safe to ignore:
  234. ;; 1) [E::hts_open_format] fail to open file ...
  235. ;; 2) samtools view: failed to open ...
  236. (invoke "nosetests")
  237. #t)))))
  238. (native-inputs
  239. `(("autoconf" ,autoconf)
  240. ("automake" ,automake)
  241. ("libtool" ,libtool)
  242. ("zlib" ,zlib)
  243. ("python-nose" ,python2-nose)
  244. ("python-pysam" ,python2-pysam)))
  245. (inputs
  246. `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
  247. ("samtools" ,samtools)
  248. ("bwa" ,bwa)
  249. ("grep" ,grep)
  250. ("sed" ,sed)
  251. ("coreutils" ,coreutils)))
  252. (propagated-inputs
  253. `(("python-numpy" ,python2-numpy)))
  254. (home-page "http://ecogenomics.github.io/BamM/")
  255. (synopsis "Metagenomics-focused BAM file manipulator")
  256. (description
  257. "BamM is a C library, wrapped in python, to efficiently generate and
  258. parse BAM files, specifically for the analysis of metagenomic data. For
  259. instance, it implements several methods to assess contig-wise read coverage.")
  260. (license license:lgpl3+)))
  261. (define-public bamtools
  262. (package
  263. (name "bamtools")
  264. (version "2.5.1")
  265. (source (origin
  266. (method git-fetch)
  267. (uri (git-reference
  268. (url "https://github.com/pezmaster31/bamtools.git")
  269. (commit (string-append "v" version))))
  270. (file-name (git-file-name name version))
  271. (sha256
  272. (base32
  273. "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
  274. (build-system cmake-build-system)
  275. (arguments
  276. `(#:tests? #f ;no "check" target
  277. #:phases
  278. (modify-phases %standard-phases
  279. (add-before
  280. 'configure 'set-ldflags
  281. (lambda* (#:key outputs #:allow-other-keys)
  282. (setenv "LDFLAGS"
  283. (string-append
  284. "-Wl,-rpath="
  285. (assoc-ref outputs "out") "/lib/bamtools"))
  286. #t)))))
  287. (inputs `(("zlib" ,zlib)))
  288. (home-page "https://github.com/pezmaster31/bamtools")
  289. (synopsis "C++ API and command-line toolkit for working with BAM data")
  290. (description
  291. "BamTools provides both a C++ API and a command-line toolkit for handling
  292. BAM files.")
  293. (license license:expat)))
  294. (define-public bcftools
  295. (package
  296. (name "bcftools")
  297. (version "1.9")
  298. (source (origin
  299. (method url-fetch)
  300. (uri (string-append "https://github.com/samtools/bcftools/"
  301. "releases/download/"
  302. version "/bcftools-" version ".tar.bz2"))
  303. (sha256
  304. (base32
  305. "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
  306. (modules '((guix build utils)))
  307. (snippet '(begin
  308. ;; Delete bundled htslib.
  309. (delete-file-recursively "htslib-1.9")
  310. #t))))
  311. (build-system gnu-build-system)
  312. (arguments
  313. `(#:configure-flags
  314. (list "--enable-libgsl")
  315. #:test-target "test"
  316. #:phases
  317. (modify-phases %standard-phases
  318. (add-before 'check 'patch-tests
  319. (lambda _
  320. (substitute* "test/test.pl"
  321. (("/bin/bash") (which "bash")))
  322. #t)))))
  323. (native-inputs
  324. `(("htslib" ,htslib)
  325. ("perl" ,perl)))
  326. (inputs
  327. `(("gsl" ,gsl)
  328. ("zlib" ,zlib)))
  329. (home-page "https://samtools.github.io/bcftools/")
  330. (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
  331. (description
  332. "BCFtools is a set of utilities that manipulate variant calls in the
  333. Variant Call Format (VCF) and its binary counterpart BCF. All commands work
  334. transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
  335. ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
  336. (license (list license:gpl3+ license:expat))))
  337. (define-public bedops
  338. (package
  339. (name "bedops")
  340. (version "2.4.35")
  341. (source (origin
  342. (method git-fetch)
  343. (uri (git-reference
  344. (url "https://github.com/bedops/bedops.git")
  345. (commit (string-append "v" version))))
  346. (file-name (git-file-name name version))
  347. (sha256
  348. (base32
  349. "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
  350. (build-system gnu-build-system)
  351. (arguments
  352. '(#:tests? #f
  353. #:make-flags (list (string-append "BINDIR=" %output "/bin"))
  354. #:phases
  355. (modify-phases %standard-phases
  356. (add-after 'unpack 'unpack-tarballs
  357. (lambda _
  358. ;; FIXME: Bedops includes tarballs of minimally patched upstream
  359. ;; libraries jansson, zlib, and bzip2. We cannot just use stock
  360. ;; libraries because at least one of the libraries (zlib) is
  361. ;; patched to add a C++ function definition (deflateInit2cpp).
  362. ;; Until the Bedops developers offer a way to link against system
  363. ;; libraries we have to build the in-tree copies of these three
  364. ;; libraries.
  365. ;; See upstream discussion:
  366. ;; https://github.com/bedops/bedops/issues/124
  367. ;; Unpack the tarballs to benefit from shebang patching.
  368. (with-directory-excursion "third-party"
  369. (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
  370. (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
  371. (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
  372. ;; Disable unpacking of tarballs in Makefile.
  373. (substitute* "system.mk/Makefile.linux"
  374. (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
  375. (("\\./configure") "CONFIG_SHELL=bash ./configure"))
  376. (substitute* "third-party/zlib-1.2.7/Makefile.in"
  377. (("^SHELL=.*$") "SHELL=bash\n"))
  378. #t))
  379. (delete 'configure))))
  380. (home-page "https://github.com/bedops/bedops")
  381. (synopsis "Tools for high-performance genomic feature operations")
  382. (description
  383. "BEDOPS is a suite of tools to address common questions raised in genomic
  384. studies---mostly with regard to overlap and proximity relationships between
  385. data sets. It aims to be scalable and flexible, facilitating the efficient
  386. and accurate analysis and management of large-scale genomic data.
  387. BEDOPS provides tools that perform highly efficient and scalable Boolean and
  388. other set operations, statistical calculations, archiving, conversion and
  389. other management of genomic data of arbitrary scale. Tasks can be easily
  390. split by chromosome for distributing whole-genome analyses across a
  391. computational cluster.")
  392. (license license:gpl2+)))
  393. (define-public bedtools
  394. (package
  395. (name "bedtools")
  396. (version "2.27.1")
  397. (source (origin
  398. (method url-fetch)
  399. (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
  400. "download/v" version "/"
  401. "bedtools-" version ".tar.gz"))
  402. (sha256
  403. (base32
  404. "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
  405. (build-system gnu-build-system)
  406. (arguments
  407. '(#:test-target "test"
  408. #:make-flags
  409. (list (string-append "prefix=" (assoc-ref %outputs "out")))
  410. #:phases
  411. (modify-phases %standard-phases
  412. (delete 'configure))))
  413. (native-inputs `(("python" ,python-2)))
  414. (inputs
  415. `(("samtools" ,samtools)
  416. ("zlib" ,zlib)))
  417. (home-page "https://github.com/arq5x/bedtools2")
  418. (synopsis "Tools for genome analysis and arithmetic")
  419. (description
  420. "Collectively, the bedtools utilities are a swiss-army knife of tools for
  421. a wide-range of genomics analysis tasks. The most widely-used tools enable
  422. genome arithmetic: that is, set theory on the genome. For example, bedtools
  423. allows one to intersect, merge, count, complement, and shuffle genomic
  424. intervals from multiple files in widely-used genomic file formats such as BAM,
  425. BED, GFF/GTF, VCF.")
  426. (license license:gpl2)))
  427. ;; Later releases of bedtools produce files with more columns than
  428. ;; what Ribotaper expects.
  429. (define-public bedtools-2.18
  430. (package (inherit bedtools)
  431. (name "bedtools")
  432. (version "2.18.0")
  433. (source (origin
  434. (method url-fetch)
  435. (uri (string-append "https://github.com/arq5x/bedtools2/"
  436. "releases/download/v" version
  437. "/bedtools-" version ".tar.gz"))
  438. (sha256
  439. (base32
  440. "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
  441. (arguments
  442. '(#:test-target "test"
  443. #:phases
  444. (modify-phases %standard-phases
  445. (delete 'configure)
  446. (replace 'install
  447. (lambda* (#:key outputs #:allow-other-keys)
  448. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  449. (for-each (lambda (file)
  450. (install-file file bin))
  451. (find-files "bin" ".*")))
  452. #t)))))))
  453. ;; Needed for pybedtools.
  454. (define-public bedtools-2.26
  455. (package (inherit bedtools)
  456. (name "bedtools")
  457. (version "2.26.0")
  458. (source (origin
  459. (method url-fetch)
  460. (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
  461. "download/v" version "/"
  462. "bedtools-" version ".tar.gz"))
  463. (sha256
  464. (base32
  465. "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
  466. (define-public ribotaper
  467. (package
  468. (name "ribotaper")
  469. (version "1.3.1")
  470. (source (origin
  471. (method url-fetch)
  472. (uri (string-append "https://ohlerlab.mdc-berlin.de/"
  473. "files/RiboTaper/RiboTaper_Version_"
  474. version ".tar.gz"))
  475. (sha256
  476. (base32
  477. "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
  478. (build-system gnu-build-system)
  479. (arguments
  480. `(#:phases
  481. (modify-phases %standard-phases
  482. (add-after 'install 'wrap-executables
  483. (lambda* (#:key inputs outputs #:allow-other-keys)
  484. (let* ((out (assoc-ref outputs "out")))
  485. (for-each
  486. (lambda (script)
  487. (wrap-program (string-append out "/bin/" script)
  488. `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
  489. '("create_annotations_files.bash"
  490. "create_metaplots.bash"
  491. "Ribotaper_ORF_find.sh"
  492. "Ribotaper.sh")))
  493. #t)))))
  494. (inputs
  495. `(("bedtools" ,bedtools-2.18)
  496. ("samtools" ,samtools-0.1)
  497. ("r-minimal" ,r-minimal)
  498. ("r-foreach" ,r-foreach)
  499. ("r-xnomial" ,r-xnomial)
  500. ("r-domc" ,r-domc)
  501. ("r-multitaper" ,r-multitaper)
  502. ("r-seqinr" ,r-seqinr)))
  503. (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
  504. (synopsis "Define translated ORFs using ribosome profiling data")
  505. (description
  506. "Ribotaper is a method for defining translated @dfn{open reading
  507. frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
  508. provides the Ribotaper pipeline.")
  509. (license license:gpl3+)))
  510. (define-public ribodiff
  511. (package
  512. (name "ribodiff")
  513. (version "0.2.2")
  514. (source
  515. (origin
  516. (method git-fetch)
  517. (uri (git-reference
  518. (url "https://github.com/ratschlab/RiboDiff.git")
  519. (commit (string-append "v" version))))
  520. (file-name (git-file-name name version))
  521. (sha256
  522. (base32
  523. "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
  524. (build-system python-build-system)
  525. (arguments
  526. `(#:python ,python-2
  527. #:phases
  528. (modify-phases %standard-phases
  529. ;; Generate an installable executable script wrapper.
  530. (add-after 'unpack 'patch-setup.py
  531. (lambda _
  532. (substitute* "setup.py"
  533. (("^(.*)packages=.*" line prefix)
  534. (string-append line "\n"
  535. prefix "scripts=['scripts/TE.py'],\n")))
  536. #t)))))
  537. (inputs
  538. `(("python-numpy" ,python2-numpy)
  539. ("python-matplotlib" ,python2-matplotlib)
  540. ("python-scipy" ,python2-scipy)
  541. ("python-statsmodels" ,python2-statsmodels)))
  542. (native-inputs
  543. `(("python-mock" ,python2-mock)
  544. ("python-nose" ,python2-nose)))
  545. (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
  546. (synopsis "Detect translation efficiency changes from ribosome footprints")
  547. (description "RiboDiff is a statistical tool that detects the protein
  548. translational efficiency change from Ribo-Seq (ribosome footprinting) and
  549. RNA-Seq data. It uses a generalized linear model to detect genes showing
  550. difference in translational profile taking mRNA abundance into account. It
  551. facilitates us to decipher the translational regulation that behave
  552. independently with transcriptional regulation.")
  553. (license license:gpl3+)))
  554. (define-public bioawk
  555. (package
  556. (name "bioawk")
  557. (version "1.0")
  558. (source (origin
  559. (method git-fetch)
  560. (uri (git-reference
  561. (url "https://github.com/lh3/bioawk.git")
  562. (commit (string-append "v" version))))
  563. (file-name (git-file-name name version))
  564. (sha256
  565. (base32
  566. "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
  567. (build-system gnu-build-system)
  568. (inputs
  569. `(("zlib" ,zlib)))
  570. (native-inputs
  571. `(("bison" ,bison)))
  572. (arguments
  573. `(#:tests? #f ; There are no tests to run.
  574. ;; Bison must generate files, before other targets can build.
  575. #:parallel-build? #f
  576. #:phases
  577. (modify-phases %standard-phases
  578. (delete 'configure) ; There is no configure phase.
  579. (replace 'install
  580. (lambda* (#:key outputs #:allow-other-keys)
  581. (let* ((out (assoc-ref outputs "out"))
  582. (bin (string-append out "/bin"))
  583. (man (string-append out "/share/man/man1")))
  584. (mkdir-p man)
  585. (copy-file "awk.1" (string-append man "/bioawk.1"))
  586. (install-file "bioawk" bin))
  587. #t)))))
  588. (home-page "https://github.com/lh3/bioawk")
  589. (synopsis "AWK with bioinformatics extensions")
  590. (description "Bioawk is an extension to Brian Kernighan's awk, adding the
  591. support of several common biological data formats, including optionally gzip'ed
  592. BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
  593. also adds a few built-in functions and a command line option to use TAB as the
  594. input/output delimiter. When the new functionality is not used, bioawk is
  595. intended to behave exactly the same as the original BWK awk.")
  596. (license license:x11)))
  597. (define-public python-pybedtools
  598. (package
  599. (name "python-pybedtools")
  600. (version "0.8.0")
  601. (source (origin
  602. (method url-fetch)
  603. (uri (pypi-uri "pybedtools" version))
  604. (sha256
  605. (base32
  606. "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
  607. (build-system python-build-system)
  608. (arguments
  609. `(#:modules ((ice-9 ftw)
  610. (srfi srfi-1)
  611. (srfi srfi-26)
  612. (guix build utils)
  613. (guix build python-build-system))
  614. ;; See https://github.com/daler/pybedtools/issues/192
  615. #:phases
  616. (modify-phases %standard-phases
  617. ;; See https://github.com/daler/pybedtools/issues/261
  618. (add-after 'unpack 'disable-broken-tests
  619. (lambda _
  620. ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
  621. ;; graphical environment.
  622. (substitute* "pybedtools/test/test_scripts.py"
  623. (("def test_venn_mpl")
  624. "def _do_not_test_venn_mpl"))
  625. (substitute* "pybedtools/test/test_helpers.py"
  626. ;; Requires internet access.
  627. (("def test_chromsizes")
  628. "def _do_not_test_chromsizes")
  629. ;; Broken as a result of the workaround used in the check phase
  630. ;; (see: https://github.com/daler/pybedtools/issues/192).
  631. (("def test_getting_example_beds")
  632. "def _do_not_test_getting_example_beds"))
  633. #t))
  634. ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
  635. ;; build system.
  636. ;; Force the Cythonization of C++ files to guard against compilation
  637. ;; problems.
  638. (add-after 'unpack 'remove-cython-generated-files
  639. (lambda _
  640. (let ((cython-sources (map (cut string-drop-right <> 4)
  641. (find-files "." "\\.pyx$")))
  642. (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
  643. (define (strip-extension filename)
  644. (string-take filename (string-index-right filename #\.)))
  645. (define (cythonized? c/c++-file)
  646. (member (strip-extension c/c++-file) cython-sources))
  647. (for-each delete-file (filter cythonized? c/c++-files))
  648. #t)))
  649. (add-after 'remove-cython-generated-files 'generate-cython-extensions
  650. (lambda _
  651. (invoke "python" "setup.py" "cythonize")))
  652. (replace 'check
  653. (lambda _
  654. (let* ((cwd (getcwd))
  655. (build-root-directory (string-append cwd "/build/"))
  656. (build (string-append
  657. build-root-directory
  658. (find (cut string-prefix? "lib" <>)
  659. (scandir (string-append
  660. build-root-directory)))))
  661. (scripts (string-append
  662. build-root-directory
  663. (find (cut string-prefix? "scripts" <>)
  664. (scandir build-root-directory)))))
  665. (setenv "PYTHONPATH"
  666. (string-append build ":" (getenv "PYTHONPATH")))
  667. ;; Executable scripts such as 'intron_exon_reads.py' must be
  668. ;; available in the PATH.
  669. (setenv "PATH"
  670. (string-append scripts ":" (getenv "PATH"))))
  671. ;; The tests need to be run from elsewhere...
  672. (mkdir-p "/tmp/test")
  673. (copy-recursively "pybedtools/test" "/tmp/test")
  674. (with-directory-excursion "/tmp/test"
  675. (invoke "pytest")))))))
  676. (propagated-inputs
  677. `(("bedtools" ,bedtools)
  678. ("samtools" ,samtools)
  679. ("python-matplotlib" ,python-matplotlib)
  680. ("python-pysam" ,python-pysam)
  681. ("python-pyyaml" ,python-pyyaml)))
  682. (native-inputs
  683. `(("python-numpy" ,python-numpy)
  684. ("python-pandas" ,python-pandas)
  685. ("python-cython" ,python-cython)
  686. ("kentutils" ,kentutils) ; for bedGraphToBigWig
  687. ("python-six" ,python-six)
  688. ;; For the test suite.
  689. ("python-pytest" ,python-pytest)
  690. ("python-psutil" ,python-psutil)))
  691. (home-page "https://pythonhosted.org/pybedtools/")
  692. (synopsis "Python wrapper for BEDtools programs")
  693. (description
  694. "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
  695. which are widely used for genomic interval manipulation or \"genome algebra\".
  696. pybedtools extends BEDTools by offering feature-level manipulations from with
  697. Python.")
  698. (license license:gpl2+)))
  699. (define-public python2-pybedtools
  700. (package-with-python2 python-pybedtools))
  701. (define-public python-biom-format
  702. (package
  703. (name "python-biom-format")
  704. (version "2.1.7")
  705. (source
  706. (origin
  707. (method git-fetch)
  708. ;; Use GitHub as source because PyPI distribution does not contain
  709. ;; test data: https://github.com/biocore/biom-format/issues/693
  710. (uri (git-reference
  711. (url "https://github.com/biocore/biom-format.git")
  712. (commit version)))
  713. (file-name (git-file-name name version))
  714. (sha256
  715. (base32
  716. "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))))
  717. (build-system python-build-system)
  718. (arguments
  719. `(#:phases
  720. (modify-phases %standard-phases
  721. (add-after 'unpack 'use-cython
  722. (lambda _ (setenv "USE_CYTHON" "1") #t))
  723. (add-after 'unpack 'disable-broken-test
  724. (lambda _
  725. (substitute* "biom/tests/test_cli/test_validate_table.py"
  726. (("^(.+)def test_invalid_hdf5" m indent)
  727. (string-append indent
  728. "@npt.dec.skipif(True, msg='Guix')\n"
  729. m)))
  730. #t))
  731. (add-before 'reset-gzip-timestamps 'make-files-writable
  732. (lambda* (#:key outputs #:allow-other-keys)
  733. (let ((out (assoc-ref outputs "out")))
  734. (for-each (lambda (file) (chmod file #o644))
  735. (find-files out "\\.gz"))
  736. #t))))))
  737. (propagated-inputs
  738. `(("python-numpy" ,python-numpy)
  739. ("python-scipy" ,python-scipy)
  740. ("python-flake8" ,python-flake8)
  741. ("python-future" ,python-future)
  742. ("python-click" ,python-click)
  743. ("python-h5py" ,python-h5py)
  744. ("python-pandas" ,python-pandas)))
  745. (native-inputs
  746. `(("python-cython" ,python-cython)
  747. ("python-pytest" ,python-pytest)
  748. ("python-pytest-cov" ,python-pytest-cov)
  749. ("python-nose" ,python-nose)))
  750. (home-page "http://www.biom-format.org")
  751. (synopsis "Biological Observation Matrix (BIOM) format utilities")
  752. (description
  753. "The BIOM file format is designed to be a general-use format for
  754. representing counts of observations e.g. operational taxonomic units, KEGG
  755. orthology groups or lipid types, in one or more biological samples
  756. e.g. microbiome samples, genomes, metagenomes.")
  757. (license license:bsd-3)
  758. (properties `((python2-variant . ,(delay python2-biom-format))))))
  759. (define-public python2-biom-format
  760. (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
  761. (package
  762. (inherit base)
  763. (arguments
  764. (substitute-keyword-arguments (package-arguments base)
  765. ((#:phases phases)
  766. `(modify-phases ,phases
  767. ;; Do not require the unmaintained pyqi library.
  768. (add-after 'unpack 'remove-pyqi
  769. (lambda _
  770. (substitute* "setup.py"
  771. (("install_requires.append\\(\"pyqi\"\\)") "pass"))
  772. #t)))))))))
  773. (define-public bioperl-minimal
  774. (let* ((inputs `(("perl-module-build" ,perl-module-build)
  775. ("perl-data-stag" ,perl-data-stag)
  776. ("perl-libwww" ,perl-libwww)
  777. ("perl-uri" ,perl-uri)))
  778. (transitive-inputs
  779. (map (compose package-name cadr)
  780. (delete-duplicates
  781. (concatenate
  782. (map (compose package-transitive-target-inputs cadr) inputs))))))
  783. (package
  784. (name "bioperl-minimal")
  785. (version "1.7.0")
  786. (source
  787. (origin
  788. (method url-fetch)
  789. (uri (string-append "https://github.com/bioperl/bioperl-live/"
  790. "archive/release-"
  791. (string-map (lambda (c)
  792. (if (char=? c #\.)
  793. #\- c)) version)
  794. ".tar.gz"))
  795. (sha256
  796. (base32
  797. "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
  798. (build-system perl-build-system)
  799. (arguments
  800. `(#:phases
  801. (modify-phases %standard-phases
  802. (add-after
  803. 'install 'wrap-programs
  804. (lambda* (#:key outputs #:allow-other-keys)
  805. ;; Make sure all executables in "bin" find the required Perl
  806. ;; modules at runtime. As the PERL5LIB variable contains also
  807. ;; the paths of native inputs, we pick the transitive target
  808. ;; inputs from %build-inputs.
  809. (let* ((out (assoc-ref outputs "out"))
  810. (bin (string-append out "/bin/"))
  811. (path (string-join
  812. (cons (string-append out "/lib/perl5/site_perl")
  813. (map (lambda (name)
  814. (assoc-ref %build-inputs name))
  815. ',transitive-inputs))
  816. ":")))
  817. (for-each (lambda (file)
  818. (wrap-program file
  819. `("PERL5LIB" ":" prefix (,path))))
  820. (find-files bin "\\.pl$"))
  821. #t))))))
  822. (inputs inputs)
  823. (native-inputs
  824. `(("perl-test-most" ,perl-test-most)))
  825. (home-page "https://metacpan.org/release/BioPerl")
  826. (synopsis "Bioinformatics toolkit")
  827. (description
  828. "BioPerl is the product of a community effort to produce Perl code which
  829. is useful in biology. Examples include Sequence objects, Alignment objects
  830. and database searching objects. These objects not only do what they are
  831. advertised to do in the documentation, but they also interact - Alignment
  832. objects are made from the Sequence objects, Sequence objects have access to
  833. Annotation and SeqFeature objects and databases, Blast objects can be
  834. converted to Alignment objects, and so on. This means that the objects
  835. provide a coordinated and extensible framework to do computational biology.")
  836. (license license:perl-license))))
  837. (define-public python-biopython
  838. (package
  839. (name "python-biopython")
  840. (version "1.70")
  841. (source (origin
  842. (method url-fetch)
  843. ;; use PyPi rather than biopython.org to ease updating
  844. (uri (pypi-uri "biopython" version))
  845. (sha256
  846. (base32
  847. "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
  848. (build-system python-build-system)
  849. (arguments
  850. `(#:phases
  851. (modify-phases %standard-phases
  852. (add-before 'check 'set-home
  853. ;; Some tests require a home directory to be set.
  854. (lambda _ (setenv "HOME" "/tmp") #t)))))
  855. (propagated-inputs
  856. `(("python-numpy" ,python-numpy)))
  857. (home-page "http://biopython.org/")
  858. (synopsis "Tools for biological computation in Python")
  859. (description
  860. "Biopython is a set of tools for biological computation including parsers
  861. for bioinformatics files into Python data structures; interfaces to common
  862. bioinformatics programs; a standard sequence class and tools for performing
  863. common operations on them; code to perform data classification; code for
  864. dealing with alignments; code making it easy to split up parallelizable tasks
  865. into separate processes; and more.")
  866. (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
  867. (define-public python2-biopython
  868. (package-with-python2 python-biopython))
  869. (define-public python-fastalite
  870. (package
  871. (name "python-fastalite")
  872. (version "0.3")
  873. (source
  874. (origin
  875. (method url-fetch)
  876. (uri (pypi-uri "fastalite" version))
  877. (sha256
  878. (base32
  879. "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
  880. (build-system python-build-system)
  881. (arguments
  882. `(#:tests? #f)) ; Test data is not distributed.
  883. (home-page "https://github.com/nhoffman/fastalite")
  884. (synopsis "Simplest possible FASTA parser")
  885. (description "This library implements a FASTA and a FASTQ parser without
  886. relying on a complex dependency tree.")
  887. (license license:expat)))
  888. (define-public python2-fastalite
  889. (package-with-python2 python-fastalite))
  890. (define-public bpp-core
  891. ;; The last release was in 2014 and the recommended way to install from source
  892. ;; is to clone the git repository, so we do this.
  893. ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
  894. (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
  895. (package
  896. (name "bpp-core")
  897. (version (string-append "2.2.0-1." (string-take commit 7)))
  898. (source (origin
  899. (method git-fetch)
  900. (uri (git-reference
  901. (url "http://biopp.univ-montp2.fr/git/bpp-core")
  902. (commit commit)))
  903. (file-name (string-append name "-" version "-checkout"))
  904. (sha256
  905. (base32
  906. "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
  907. (build-system cmake-build-system)
  908. (arguments
  909. `(#:parallel-build? #f))
  910. (inputs
  911. `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
  912. ; compile all of the bpp packages with GCC 5.
  913. (home-page "http://biopp.univ-montp2.fr")
  914. (synopsis "C++ libraries for Bioinformatics")
  915. (description
  916. "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  917. analysis, phylogenetics, molecular evolution and population genetics. It is
  918. Object Oriented and is designed to be both easy to use and computer efficient.
  919. Bio++ intends to help programmers to write computer expensive programs, by
  920. providing them a set of re-usable tools.")
  921. (license license:cecill-c))))
  922. (define-public bpp-phyl
  923. ;; The last release was in 2014 and the recommended way to install from source
  924. ;; is to clone the git repository, so we do this.
  925. ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
  926. (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
  927. (package
  928. (name "bpp-phyl")
  929. (version (string-append "2.2.0-1." (string-take commit 7)))
  930. (source (origin
  931. (method git-fetch)
  932. (uri (git-reference
  933. (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
  934. (commit commit)))
  935. (file-name (string-append name "-" version "-checkout"))
  936. (sha256
  937. (base32
  938. "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
  939. (build-system cmake-build-system)
  940. (arguments
  941. `(#:parallel-build? #f
  942. ;; If out-of-source, test data is not copied into the build directory
  943. ;; so the tests fail.
  944. #:out-of-source? #f))
  945. (inputs
  946. `(("bpp-core" ,bpp-core)
  947. ("bpp-seq" ,bpp-seq)
  948. ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
  949. ;; modern GCC.
  950. ("gcc" ,gcc-5)))
  951. (home-page "http://biopp.univ-montp2.fr")
  952. (synopsis "Bio++ phylogenetic Library")
  953. (description
  954. "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  955. analysis, phylogenetics, molecular evolution and population genetics. This
  956. library provides phylogenetics-related modules.")
  957. (license license:cecill-c))))
  958. (define-public bpp-popgen
  959. ;; The last release was in 2014 and the recommended way to install from source
  960. ;; is to clone the git repository, so we do this.
  961. ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
  962. (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
  963. (package
  964. (name "bpp-popgen")
  965. (version (string-append "2.2.0-1." (string-take commit 7)))
  966. (source (origin
  967. (method git-fetch)
  968. (uri (git-reference
  969. (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
  970. (commit commit)))
  971. (file-name (string-append name "-" version "-checkout"))
  972. (sha256
  973. (base32
  974. "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
  975. (build-system cmake-build-system)
  976. (arguments
  977. `(#:parallel-build? #f
  978. #:tests? #f)) ; There are no tests.
  979. (inputs
  980. `(("bpp-core" ,bpp-core)
  981. ("bpp-seq" ,bpp-seq)
  982. ("gcc" ,gcc-5)))
  983. (home-page "http://biopp.univ-montp2.fr")
  984. (synopsis "Bio++ population genetics library")
  985. (description
  986. "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  987. analysis, phylogenetics, molecular evolution and population genetics. This
  988. library provides population genetics-related modules.")
  989. (license license:cecill-c))))
  990. (define-public bpp-seq
  991. ;; The last release was in 2014 and the recommended way to install from source
  992. ;; is to clone the git repository, so we do this.
  993. ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
  994. (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
  995. (package
  996. (name "bpp-seq")
  997. (version (string-append "2.2.0-1." (string-take commit 7)))
  998. (source (origin
  999. (method git-fetch)
  1000. (uri (git-reference
  1001. (url "http://biopp.univ-montp2.fr/git/bpp-seq")
  1002. (commit commit)))
  1003. (file-name (string-append name "-" version "-checkout"))
  1004. (sha256
  1005. (base32
  1006. "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
  1007. (build-system cmake-build-system)
  1008. (arguments
  1009. `(#:parallel-build? #f
  1010. ;; If out-of-source, test data is not copied into the build directory
  1011. ;; so the tests fail.
  1012. #:out-of-source? #f))
  1013. (inputs
  1014. `(("bpp-core" ,bpp-core)
  1015. ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
  1016. (home-page "http://biopp.univ-montp2.fr")
  1017. (synopsis "Bio++ sequence library")
  1018. (description
  1019. "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  1020. analysis, phylogenetics, molecular evolution and population genetics. This
  1021. library provides sequence-related modules.")
  1022. (license license:cecill-c))))
  1023. (define-public bppsuite
  1024. ;; The last release was in 2014 and the recommended way to install from source
  1025. ;; is to clone the git repository, so we do this.
  1026. ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
  1027. (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
  1028. (package
  1029. (name "bppsuite")
  1030. (version (string-append "2.2.0-1." (string-take commit 7)))
  1031. (source (origin
  1032. (method git-fetch)
  1033. (uri (git-reference
  1034. (url "http://biopp.univ-montp2.fr/git/bppsuite")
  1035. (commit commit)))
  1036. (file-name (string-append name "-" version "-checkout"))
  1037. (sha256
  1038. (base32
  1039. "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
  1040. (build-system cmake-build-system)
  1041. (arguments
  1042. `(#:parallel-build? #f
  1043. #:tests? #f)) ; There are no tests.
  1044. (native-inputs
  1045. `(("groff" ,groff)
  1046. ("man-db" ,man-db)
  1047. ("texinfo" ,texinfo)))
  1048. (inputs
  1049. `(("bpp-core" ,bpp-core)
  1050. ("bpp-seq" ,bpp-seq)
  1051. ("bpp-phyl" ,bpp-phyl)
  1052. ("bpp-phyl" ,bpp-popgen)
  1053. ("gcc" ,gcc-5)))
  1054. (home-page "http://biopp.univ-montp2.fr")
  1055. (synopsis "Bioinformatics tools written with the Bio++ libraries")
  1056. (description
  1057. "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
  1058. analysis, phylogenetics, molecular evolution and population genetics. This
  1059. package provides command line tools using the Bio++ library.")
  1060. (license license:cecill-c))))
  1061. (define-public blast+
  1062. (package
  1063. (name "blast+")
  1064. (version "2.6.0")
  1065. (source (origin
  1066. (method url-fetch)
  1067. (uri (string-append
  1068. "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
  1069. version "/ncbi-blast-" version "+-src.tar.gz"))
  1070. (sha256
  1071. (base32
  1072. "15n937pw5aqmyfjb6l387d18grqbb96l63d5xj4l7yyh0zbf2405"))
  1073. (patches (search-patches "blast+-fix-makefile.patch"))
  1074. (modules '((guix build utils)))
  1075. (snippet
  1076. '(begin
  1077. ;; Remove bundled bzip2, zlib and pcre.
  1078. (delete-file-recursively "c++/src/util/compress/bzip2")
  1079. (delete-file-recursively "c++/src/util/compress/zlib")
  1080. (delete-file-recursively "c++/src/util/regexp")
  1081. (substitute* "c++/src/util/compress/Makefile.in"
  1082. (("bzip2 zlib api") "api"))
  1083. ;; Remove useless msbuild directory
  1084. (delete-file-recursively
  1085. "c++/src/build-system/project_tree_builder/msbuild")
  1086. #t))))
  1087. (build-system gnu-build-system)
  1088. (arguments
  1089. `(;; There are two(!) tests for this massive library, and both fail with
  1090. ;; "unparsable timing stats".
  1091. ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
  1092. ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
  1093. #:tests? #f
  1094. #:out-of-source? #t
  1095. #:parallel-build? #f ; not supported
  1096. #:phases
  1097. (modify-phases %standard-phases
  1098. (add-before 'configure 'set-HOME
  1099. ;; $HOME needs to be set at some point during the configure phase
  1100. (lambda _ (setenv "HOME" "/tmp") #t))
  1101. (add-after 'unpack 'enter-dir
  1102. (lambda _ (chdir "c++") #t))
  1103. (add-after 'enter-dir 'fix-build-system
  1104. (lambda _
  1105. (define (which* cmd)
  1106. (cond ((string=? cmd "date")
  1107. ;; make call to "date" deterministic
  1108. "date -d @0")
  1109. ((which cmd)
  1110. => identity)
  1111. (else
  1112. (format (current-error-port)
  1113. "WARNING: Unable to find absolute path for ~s~%"
  1114. cmd)
  1115. #f)))
  1116. ;; Rewrite hardcoded paths to various tools
  1117. (substitute* (append '("src/build-system/configure.ac"
  1118. "src/build-system/configure"
  1119. "src/build-system/helpers/run_with_lock.c"
  1120. "scripts/common/impl/if_diff.sh"
  1121. "scripts/common/impl/run_with_lock.sh"
  1122. "src/build-system/Makefile.configurables.real"
  1123. "src/build-system/Makefile.in.top"
  1124. "src/build-system/Makefile.meta.gmake=no"
  1125. "src/build-system/Makefile.meta.in"
  1126. "src/build-system/Makefile.meta_l"
  1127. "src/build-system/Makefile.meta_p"
  1128. "src/build-system/Makefile.meta_r"
  1129. "src/build-system/Makefile.mk.in"
  1130. "src/build-system/Makefile.requirements"
  1131. "src/build-system/Makefile.rules_with_autodep.in")
  1132. (find-files "scripts/common/check" "\\.sh$"))
  1133. (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
  1134. (or (which* cmd) all)))
  1135. (substitute* (find-files "src/build-system" "^config.*")
  1136. (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
  1137. (("^PATH=.*") ""))
  1138. ;; rewrite "/var/tmp" in check script
  1139. (substitute* "scripts/common/check/check_make_unix.sh"
  1140. (("/var/tmp") "/tmp"))
  1141. ;; do not reset PATH
  1142. (substitute* (find-files "scripts/common/impl/" "\\.sh$")
  1143. (("^ *PATH=.*") "")
  1144. (("action=/bin/") "action=")
  1145. (("export PATH") ":"))
  1146. #t))
  1147. (replace 'configure
  1148. (lambda* (#:key inputs outputs #:allow-other-keys)
  1149. (let ((out (assoc-ref outputs "out"))
  1150. (lib (string-append (assoc-ref outputs "lib") "/lib"))
  1151. (include (string-append (assoc-ref outputs "include")
  1152. "/include/ncbi-tools++")))
  1153. ;; The 'configure' script doesn't recognize things like
  1154. ;; '--enable-fast-install'.
  1155. (invoke "./configure.orig"
  1156. (string-append "--with-build-root=" (getcwd) "/build")
  1157. (string-append "--prefix=" out)
  1158. (string-append "--libdir=" lib)
  1159. (string-append "--includedir=" include)
  1160. (string-append "--with-bz2="
  1161. (assoc-ref inputs "bzip2"))
  1162. (string-append "--with-z="
  1163. (assoc-ref inputs "zlib"))
  1164. (string-append "--with-pcre="
  1165. (assoc-ref inputs "pcre"))
  1166. ;; Each library is built twice by default, once
  1167. ;; with "-static" in its name, and again
  1168. ;; without.
  1169. "--without-static"
  1170. "--with-dll")
  1171. #t))))))
  1172. (outputs '("out" ; 21 MB
  1173. "lib" ; 226 MB
  1174. "include")) ; 33 MB
  1175. (inputs
  1176. `(("bzip2" ,bzip2)
  1177. ("zlib" ,zlib)
  1178. ("pcre" ,pcre)
  1179. ("perl" ,perl)
  1180. ("python" ,python-wrapper)))
  1181. (native-inputs
  1182. `(("cpio" ,cpio)))
  1183. (home-page "http://blast.ncbi.nlm.nih.gov")
  1184. (synopsis "Basic local alignment search tool")
  1185. (description
  1186. "BLAST is a popular method of performing a DNA or protein sequence
  1187. similarity search, using heuristics to produce results quickly. It also
  1188. calculates an “expect value” that estimates how many matches would have
  1189. occurred at a given score by chance, which can aid a user in judging how much
  1190. confidence to have in an alignment.")
  1191. ;; Most of the sources are in the public domain, with the following
  1192. ;; exceptions:
  1193. ;; * Expat:
  1194. ;; * ./c++/include/util/bitset/
  1195. ;; * ./c++/src/html/ncbi_menu*.js
  1196. ;; * Boost license:
  1197. ;; * ./c++/include/util/impl/floating_point_comparison.hpp
  1198. ;; * LGPL 2+:
  1199. ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
  1200. ;; * ASL 2.0:
  1201. ;; * ./c++/src/corelib/teamcity_*
  1202. (license (list license:public-domain
  1203. license:expat
  1204. license:boost1.0
  1205. license:lgpl2.0+
  1206. license:asl2.0))))
  1207. (define-public bless
  1208. (package
  1209. (name "bless")
  1210. (version "1p02")
  1211. (source (origin
  1212. (method url-fetch)
  1213. (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
  1214. version ".tgz"))
  1215. (sha256
  1216. (base32
  1217. "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
  1218. (modules '((guix build utils)))
  1219. (snippet
  1220. `(begin
  1221. ;; Remove bundled boost, pigz, zlib, and .git directory
  1222. ;; FIXME: also remove bundled sources for murmurhash3 and
  1223. ;; kmc once packaged.
  1224. (delete-file-recursively "boost")
  1225. (delete-file-recursively "pigz")
  1226. (delete-file-recursively "google-sparsehash")
  1227. (delete-file-recursively "zlib")
  1228. (delete-file-recursively ".git")
  1229. #t))))
  1230. (build-system gnu-build-system)
  1231. (arguments
  1232. '(#:tests? #f ;no "check" target
  1233. #:make-flags
  1234. (list (string-append "ZLIB="
  1235. (assoc-ref %build-inputs "zlib:static")
  1236. "/lib/libz.a")
  1237. (string-append "LDFLAGS="
  1238. (string-join '("-lboost_filesystem"
  1239. "-lboost_system"
  1240. "-lboost_iostreams"
  1241. "-lz"
  1242. "-fopenmp"
  1243. "-std=c++11"))))
  1244. #:phases
  1245. (modify-phases %standard-phases
  1246. (add-after 'unpack 'do-not-build-bundled-pigz
  1247. (lambda* (#:key inputs outputs #:allow-other-keys)
  1248. (substitute* "Makefile"
  1249. (("cd pigz/pigz-2.3.3; make") ""))
  1250. #t))
  1251. (add-after 'unpack 'patch-paths-to-executables
  1252. (lambda* (#:key inputs outputs #:allow-other-keys)
  1253. (substitute* "parse_args.cpp"
  1254. (("kmc_binary = .*")
  1255. (string-append "kmc_binary = \""
  1256. (assoc-ref outputs "out")
  1257. "/bin/kmc\";"))
  1258. (("pigz_binary = .*")
  1259. (string-append "pigz_binary = \""
  1260. (assoc-ref inputs "pigz")
  1261. "/bin/pigz\";")))
  1262. #t))
  1263. (replace 'install
  1264. (lambda* (#:key outputs #:allow-other-keys)
  1265. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  1266. (for-each (lambda (file)
  1267. (install-file file bin))
  1268. '("bless" "kmc/bin/kmc"))
  1269. #t)))
  1270. (delete 'configure))))
  1271. (native-inputs
  1272. `(("perl" ,perl)))
  1273. (inputs
  1274. `(("openmpi" ,openmpi)
  1275. ("boost" ,boost)
  1276. ("sparsehash" ,sparsehash)
  1277. ("pigz" ,pigz)
  1278. ("zlib:static" ,zlib "static")
  1279. ("zlib" ,zlib)))
  1280. (supported-systems '("x86_64-linux"))
  1281. (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
  1282. (synopsis "Bloom-filter-based error correction tool for NGS reads")
  1283. (description
  1284. "@dfn{Bloom-filter-based error correction solution for high-throughput
  1285. sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
  1286. correction tool for genomic reads produced by @dfn{Next-generation
  1287. sequencing} (NGS). BLESS produces accurate correction results with much less
  1288. memory compared with previous solutions and is also able to tolerate a higher
  1289. false-positive rate. BLESS can extend reads like DNA assemblers to correct
  1290. errors at the end of reads.")
  1291. (license license:gpl3+)))
  1292. (define-public bowtie
  1293. (package
  1294. (name "bowtie")
  1295. (version "2.3.4.3")
  1296. (source (origin
  1297. (method git-fetch)
  1298. (uri (git-reference
  1299. (url "https://github.com/BenLangmead/bowtie2.git")
  1300. (commit (string-append "v" version))))
  1301. (file-name (git-file-name name version))
  1302. (sha256
  1303. (base32
  1304. "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
  1305. (modules '((guix build utils)))
  1306. (snippet
  1307. '(begin
  1308. (substitute* "Makefile"
  1309. ;; replace BUILD_HOST and BUILD_TIME for deterministic build
  1310. (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
  1311. (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
  1312. #t))))
  1313. (build-system gnu-build-system)
  1314. (arguments
  1315. '(#:make-flags
  1316. (list "allall"
  1317. "WITH_TBB=1"
  1318. (string-append "prefix=" (assoc-ref %outputs "out")))
  1319. #:phases
  1320. (modify-phases %standard-phases
  1321. (delete 'configure)
  1322. (replace 'check
  1323. (lambda _
  1324. (invoke "perl"
  1325. "scripts/test/simple_tests.pl"
  1326. "--bowtie2=./bowtie2"
  1327. "--bowtie2-build=./bowtie2-build")
  1328. #t)))))
  1329. (inputs
  1330. `(("tbb" ,tbb)
  1331. ("zlib" ,zlib)
  1332. ("python" ,python-wrapper)))
  1333. (native-inputs
  1334. `(("perl" ,perl)
  1335. ("perl-clone" ,perl-clone)
  1336. ("perl-test-deep" ,perl-test-deep)
  1337. ("perl-test-simple" ,perl-test-simple)))
  1338. (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
  1339. (synopsis "Fast and sensitive nucleotide sequence read aligner")
  1340. (description
  1341. "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
  1342. reads to long reference sequences. It is particularly good at aligning reads
  1343. of about 50 up to 100s or 1,000s of characters, and particularly good at
  1344. aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
  1345. genome with an FM Index to keep its memory footprint small: for the human
  1346. genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
  1347. gapped, local, and paired-end alignment modes.")
  1348. (supported-systems '("x86_64-linux"))
  1349. (license license:gpl3+)))
  1350. (define-public tophat
  1351. (package
  1352. (name "tophat")
  1353. (version "2.1.1")
  1354. (source (origin
  1355. (method url-fetch)
  1356. (uri (string-append
  1357. "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
  1358. version ".tar.gz"))
  1359. (sha256
  1360. (base32
  1361. "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
  1362. (modules '((guix build utils)))
  1363. (snippet
  1364. '(begin
  1365. ;; Remove bundled SeqAn and samtools
  1366. (delete-file-recursively "src/SeqAn-1.4.2")
  1367. (delete-file-recursively "src/samtools-0.1.18")
  1368. #t))))
  1369. (build-system gnu-build-system)
  1370. (arguments
  1371. '(#:parallel-build? #f ; not supported
  1372. #:phases
  1373. (modify-phases %standard-phases
  1374. (add-after 'unpack 'use-system-samtools
  1375. (lambda* (#:key inputs #:allow-other-keys)
  1376. (substitute* "src/Makefile.in"
  1377. (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
  1378. (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
  1379. (("SAMPROG = samtools_0\\.1\\.18") "")
  1380. (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
  1381. (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
  1382. (substitute* '("src/common.cpp"
  1383. "src/tophat.py")
  1384. (("samtools_0.1.18") (which "samtools")))
  1385. (substitute* '("src/common.h"
  1386. "src/bam2fastx.cpp")
  1387. (("#include \"bam.h\"") "#include <samtools/bam.h>")
  1388. (("#include \"sam.h\"") "#include <samtools/sam.h>"))
  1389. (substitute* '("src/bwt_map.h"
  1390. "src/map2gtf.h"
  1391. "src/align_status.h")
  1392. (("#include <bam.h>") "#include <samtools/bam.h>")
  1393. (("#include <sam.h>") "#include <samtools/sam.h>"))
  1394. #t)))))
  1395. (inputs
  1396. `(("boost" ,boost)
  1397. ("bowtie" ,bowtie)
  1398. ("samtools" ,samtools-0.1)
  1399. ("ncurses" ,ncurses)
  1400. ("python" ,python-2)
  1401. ("perl" ,perl)
  1402. ("zlib" ,zlib)
  1403. ("seqan" ,seqan-1)))
  1404. (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
  1405. (synopsis "Spliced read mapper for RNA-Seq data")
  1406. (description
  1407. "TopHat is a fast splice junction mapper for nucleotide sequence
  1408. reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
  1409. mammalian-sized genomes using the ultra high-throughput short read
  1410. aligner Bowtie, and then analyzes the mapping results to identify
  1411. splice junctions between exons.")
  1412. ;; TopHat is released under the Boost Software License, Version 1.0
  1413. ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
  1414. (license license:boost1.0)))
  1415. (define-public bwa
  1416. (package
  1417. (name "bwa")
  1418. (version "0.7.17")
  1419. (source (origin
  1420. (method url-fetch)
  1421. (uri (string-append
  1422. "https://github.com/lh3/bwa/releases/download/v"
  1423. version "/bwa-" version ".tar.bz2"))
  1424. (sha256
  1425. (base32
  1426. "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
  1427. (build-system gnu-build-system)
  1428. (arguments
  1429. '(#:tests? #f ;no "check" target
  1430. #:phases
  1431. (modify-phases %standard-phases
  1432. (replace 'install
  1433. (lambda* (#:key outputs #:allow-other-keys)
  1434. (let ((bin (string-append
  1435. (assoc-ref outputs "out") "/bin"))
  1436. (doc (string-append
  1437. (assoc-ref outputs "out") "/share/doc/bwa"))
  1438. (man (string-append
  1439. (assoc-ref outputs "out") "/share/man/man1")))
  1440. (install-file "bwa" bin)
  1441. (install-file "README.md" doc)
  1442. (install-file "bwa.1" man))
  1443. #t))
  1444. ;; no "configure" script
  1445. (delete 'configure))))
  1446. (inputs `(("zlib" ,zlib)))
  1447. ;; Non-portable SSE instructions are used so building fails on platforms
  1448. ;; other than x86_64.
  1449. (supported-systems '("x86_64-linux"))
  1450. (home-page "http://bio-bwa.sourceforge.net/")
  1451. (synopsis "Burrows-Wheeler sequence aligner")
  1452. (description
  1453. "BWA is a software package for mapping low-divergent sequences against a
  1454. large reference genome, such as the human genome. It consists of three
  1455. algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
  1456. designed for Illumina sequence reads up to 100bp, while the rest two for
  1457. longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
  1458. features such as long-read support and split alignment, but BWA-MEM, which is
  1459. the latest, is generally recommended for high-quality queries as it is faster
  1460. and more accurate. BWA-MEM also has better performance than BWA-backtrack for
  1461. 70-100bp Illumina reads.")
  1462. (license license:gpl3+)))
  1463. (define-public bwa-pssm
  1464. (package (inherit bwa)
  1465. (name "bwa-pssm")
  1466. (version "0.5.11")
  1467. (source (origin
  1468. (method git-fetch)
  1469. (uri (git-reference
  1470. (url "https://github.com/pkerpedjiev/bwa-pssm.git")
  1471. (commit version)))
  1472. (file-name (git-file-name name version))
  1473. (sha256
  1474. (base32
  1475. "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
  1476. (build-system gnu-build-system)
  1477. (inputs
  1478. `(("gdsl" ,gdsl)
  1479. ("zlib" ,zlib)
  1480. ("perl" ,perl)))
  1481. (home-page "http://bwa-pssm.binf.ku.dk/")
  1482. (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
  1483. (description
  1484. "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
  1485. the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
  1486. existing aligners it is fast and sensitive. Unlike most other aligners,
  1487. however, it is also adaptible in the sense that one can direct the alignment
  1488. based on known biases within the data set. It is coded as a modification of
  1489. the original BWA alignment program and shares the genome index structure as
  1490. well as many of the command line options.")
  1491. (license license:gpl3+)))
  1492. (define-public python-bx-python
  1493. (package
  1494. (name "python-bx-python")
  1495. (version "0.8.2")
  1496. (source (origin
  1497. (method url-fetch)
  1498. (uri (pypi-uri "bx-python" version))
  1499. (sha256
  1500. (base32
  1501. "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
  1502. (build-system python-build-system)
  1503. ;; Tests fail because test data are not included
  1504. (arguments '(#:tests? #f))
  1505. (propagated-inputs
  1506. `(("python-numpy" ,python-numpy)
  1507. ("python-six" ,python-six)))
  1508. (inputs
  1509. `(("zlib" ,zlib)))
  1510. (native-inputs
  1511. `(("python-lzo" ,python-lzo)
  1512. ("python-nose" ,python-nose)
  1513. ("python-cython" ,python-cython)))
  1514. (home-page "https://github.com/bxlab/bx-python")
  1515. (synopsis "Tools for manipulating biological data")
  1516. (description
  1517. "bx-python provides tools for manipulating biological data, particularly
  1518. multiple sequence alignments.")
  1519. (license license:expat)))
  1520. (define-public python2-bx-python
  1521. (package-with-python2 python-bx-python))
  1522. (define-public python-pysam
  1523. (package
  1524. (name "python-pysam")
  1525. (version "0.15.1")
  1526. (source (origin
  1527. (method git-fetch)
  1528. ;; Test data is missing on PyPi.
  1529. (uri (git-reference
  1530. (url "https://github.com/pysam-developers/pysam.git")
  1531. (commit (string-append "v" version))))
  1532. (file-name (git-file-name name version))
  1533. (sha256
  1534. (base32
  1535. "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
  1536. (modules '((guix build utils)))
  1537. (snippet '(begin
  1538. ;; Drop bundled htslib. TODO: Also remove samtools
  1539. ;; and bcftools.
  1540. (delete-file-recursively "htslib")
  1541. #t))))
  1542. (build-system python-build-system)
  1543. (arguments
  1544. `(#:modules ((ice-9 ftw)
  1545. (srfi srfi-26)
  1546. (guix build python-build-system)
  1547. (guix build utils))
  1548. #:phases
  1549. (modify-phases %standard-phases
  1550. (add-before 'build 'set-flags
  1551. (lambda* (#:key inputs #:allow-other-keys)
  1552. (setenv "HTSLIB_MODE" "external")
  1553. (setenv "HTSLIB_LIBRARY_DIR"
  1554. (string-append (assoc-ref inputs "htslib") "/lib"))
  1555. (setenv "HTSLIB_INCLUDE_DIR"
  1556. (string-append (assoc-ref inputs "htslib") "/include"))
  1557. (setenv "LDFLAGS" "-lncurses")
  1558. (setenv "CFLAGS" "-D_CURSES_LIB=1")
  1559. #t))
  1560. (replace 'check
  1561. (lambda* (#:key inputs outputs #:allow-other-keys)
  1562. ;; This file contains tests that require a connection to the
  1563. ;; internet.
  1564. (delete-file "tests/tabix_test.py")
  1565. ;; FIXME: This test fails
  1566. (delete-file "tests/AlignmentFile_test.py")
  1567. ;; Add first subdirectory of "build" directory to PYTHONPATH.
  1568. (setenv "PYTHONPATH"
  1569. (string-append
  1570. (getenv "PYTHONPATH")
  1571. ":" (getcwd) "/build/"
  1572. (car (scandir "build"
  1573. (negate (cut string-prefix? "." <>))))))
  1574. ;; Step out of source dir so python does not import from CWD.
  1575. (with-directory-excursion "tests"
  1576. (setenv "HOME" "/tmp")
  1577. (invoke "make" "-C" "pysam_data")
  1578. (invoke "make" "-C" "cbcf_data")
  1579. ;; Running nosetests without explicitly asking for a single
  1580. ;; process leads to a crash. Running with multiple processes
  1581. ;; fails because the tests are not designed to run in parallel.
  1582. ;; FIXME: tests keep timing out on some systems.
  1583. (invoke "nosetests" "-v" "--processes" "1")))))))
  1584. (propagated-inputs
  1585. `(("htslib" ,htslib))) ; Included from installed header files.
  1586. (inputs
  1587. `(("ncurses" ,ncurses)
  1588. ("curl" ,curl)
  1589. ("zlib" ,zlib)))
  1590. (native-inputs
  1591. `(("python-cython" ,python-cython)
  1592. ;; Dependencies below are are for tests only.
  1593. ("samtools" ,samtools)
  1594. ("bcftools" ,bcftools)
  1595. ("python-nose" ,python-nose)))
  1596. (home-page "https://github.com/pysam-developers/pysam")
  1597. (synopsis "Python bindings to the SAMtools C API")
  1598. (description
  1599. "Pysam is a Python module for reading and manipulating files in the
  1600. SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
  1601. also includes an interface for tabix.")
  1602. (license license:expat)))
  1603. (define-public python2-pysam
  1604. (package-with-python2 python-pysam))
  1605. (define-public python-twobitreader
  1606. (package
  1607. (name "python-twobitreader")
  1608. (version "3.1.6")
  1609. (source (origin
  1610. (method git-fetch)
  1611. (uri (git-reference
  1612. (url "https://github.com/benjschiller/twobitreader")
  1613. (commit version)))
  1614. (file-name (git-file-name name version))
  1615. (sha256
  1616. (base32
  1617. "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
  1618. (build-system python-build-system)
  1619. ;; Tests are not included
  1620. (arguments '(#:tests? #f))
  1621. (native-inputs
  1622. `(("python-sphinx" ,python-sphinx)))
  1623. (home-page "https://github.com/benjschiller/twobitreader")
  1624. (synopsis "Python library for reading .2bit files")
  1625. (description
  1626. "twobitreader is a Python library for reading .2bit files as used by the
  1627. UCSC genome browser.")
  1628. (license license:artistic2.0)))
  1629. (define-public python2-twobitreader
  1630. (package-with-python2 python-twobitreader))
  1631. (define-public python-plastid
  1632. (package
  1633. (name "python-plastid")
  1634. (version "0.4.8")
  1635. (source (origin
  1636. (method url-fetch)
  1637. (uri (pypi-uri "plastid" version))
  1638. (sha256
  1639. (base32
  1640. "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
  1641. (build-system python-build-system)
  1642. (arguments
  1643. ;; Some test files are not included.
  1644. `(#:tests? #f))
  1645. (propagated-inputs
  1646. `(("python-numpy" ,python-numpy)
  1647. ("python-scipy" ,python-scipy)
  1648. ("python-pandas" ,python-pandas)
  1649. ("python-pysam" ,python-pysam)
  1650. ("python-matplotlib" ,python-matplotlib)
  1651. ("python-biopython" ,python-biopython)
  1652. ("python-twobitreader" ,python-twobitreader)
  1653. ("python-termcolor" ,python-termcolor)))
  1654. (native-inputs
  1655. `(("python-cython" ,python-cython)
  1656. ("python-nose" ,python-nose)))
  1657. (home-page "https://github.com/joshuagryphon/plastid")
  1658. (synopsis "Python library for genomic analysis")
  1659. (description
  1660. "plastid is a Python library for genomic analysis – in particular,
  1661. high-throughput sequencing data – with an emphasis on simplicity.")
  1662. (license license:bsd-3)))
  1663. (define-public python2-plastid
  1664. (package-with-python2 python-plastid))
  1665. (define-public cd-hit
  1666. (package
  1667. (name "cd-hit")
  1668. (version "4.6.8")
  1669. (source (origin
  1670. (method url-fetch)
  1671. (uri (string-append "https://github.com/weizhongli/cdhit"
  1672. "/releases/download/V" version
  1673. "/cd-hit-v" version
  1674. "-2017-0621-source.tar.gz"))
  1675. (sha256
  1676. (base32
  1677. "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
  1678. (build-system gnu-build-system)
  1679. (arguments
  1680. `(#:tests? #f ; there are no tests
  1681. #:make-flags
  1682. ;; Executables are copied directly to the PREFIX.
  1683. (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
  1684. #:phases
  1685. (modify-phases %standard-phases
  1686. ;; No "configure" script
  1687. (delete 'configure)
  1688. ;; Remove sources of non-determinism
  1689. (add-after 'unpack 'be-timeless
  1690. (lambda _
  1691. (substitute* "cdhit-utility.c++"
  1692. ((" \\(built on \" __DATE__ \"\\)") ""))
  1693. (substitute* "cdhit-common.c++"
  1694. (("__DATE__") "\"0\"")
  1695. (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
  1696. #t))
  1697. ;; The "install" target does not create the target directory.
  1698. (add-before 'install 'create-target-dir
  1699. (lambda* (#:key outputs #:allow-other-keys)
  1700. (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
  1701. #t)))))
  1702. (inputs
  1703. `(("perl" ,perl)))
  1704. (home-page "http://weizhongli-lab.org/cd-hit/")
  1705. (synopsis "Cluster and compare protein or nucleotide sequences")
  1706. (description
  1707. "CD-HIT is a program for clustering and comparing protein or nucleotide
  1708. sequences. CD-HIT is designed to be fast and handle extremely large
  1709. databases.")
  1710. ;; The manual says: "It can be copied under the GNU General Public License
  1711. ;; version 2 (GPLv2)."
  1712. (license license:gpl2)))
  1713. (define-public clipper
  1714. (package
  1715. (name "clipper")
  1716. (version "1.2.1")
  1717. (source (origin
  1718. (method git-fetch)
  1719. (uri (git-reference
  1720. (url "https://github.com/YeoLab/clipper.git")
  1721. (commit version)))
  1722. (file-name (git-file-name name version))
  1723. (sha256
  1724. (base32
  1725. "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
  1726. (modules '((guix build utils)))
  1727. (snippet
  1728. '(begin
  1729. ;; remove unnecessary setup dependency
  1730. (substitute* "setup.py"
  1731. (("setup_requires = .*") ""))
  1732. #t))))
  1733. (build-system python-build-system)
  1734. (arguments
  1735. `(#:python ,python-2 ; only Python 2 is supported
  1736. #:phases
  1737. (modify-phases %standard-phases
  1738. ;; This is fixed in upstream commit
  1739. ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
  1740. (add-after 'unpack 'fix-typo
  1741. (lambda _
  1742. (substitute* "clipper/src/readsToWiggle.pyx"
  1743. (("^sc.*") ""))
  1744. #t)))))
  1745. (inputs
  1746. `(("htseq" ,python2-htseq)
  1747. ("python-pybedtools" ,python2-pybedtools)
  1748. ("python-cython" ,python2-cython)
  1749. ("python-scikit-learn" ,python2-scikit-learn)
  1750. ("python-matplotlib" ,python2-matplotlib)
  1751. ("python-pandas" ,python2-pandas)
  1752. ("python-pysam" ,python2-pysam)
  1753. ("python-numpy" ,python2-numpy)
  1754. ("python-scipy" ,python2-scipy)))
  1755. (native-inputs
  1756. `(("python-mock" ,python2-mock) ; for tests
  1757. ("python-nose" ,python2-nose) ; for tests
  1758. ("python-pytz" ,python2-pytz))) ; for tests
  1759. (home-page "https://github.com/YeoLab/clipper")
  1760. (synopsis "CLIP peak enrichment recognition")
  1761. (description
  1762. "CLIPper is a tool to define peaks in CLIP-seq datasets.")
  1763. (license license:gpl2)))
  1764. (define-public codingquarry
  1765. (package
  1766. (name "codingquarry")
  1767. (version "2.0")
  1768. (source (origin
  1769. (method url-fetch)
  1770. (uri (string-append
  1771. "mirror://sourceforge/codingquarry/CodingQuarry_v"
  1772. version ".tar.gz"))
  1773. (sha256
  1774. (base32
  1775. "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
  1776. (build-system gnu-build-system)
  1777. (arguments
  1778. '(#:tests? #f ; no "check" target
  1779. #:phases
  1780. (modify-phases %standard-phases
  1781. (delete 'configure)
  1782. (replace 'install
  1783. (lambda* (#:key outputs #:allow-other-keys)
  1784. (let* ((out (assoc-ref outputs "out"))
  1785. (bin (string-append out "/bin"))
  1786. (doc (string-append out "/share/doc/codingquarry")))
  1787. (install-file "INSTRUCTIONS.pdf" doc)
  1788. (copy-recursively "QuarryFiles"
  1789. (string-append out "/QuarryFiles"))
  1790. (install-file "CodingQuarry" bin)
  1791. (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
  1792. #t)))))
  1793. (inputs `(("openmpi" ,openmpi)))
  1794. (native-search-paths
  1795. (list (search-path-specification
  1796. (variable "QUARRY_PATH")
  1797. (files '("QuarryFiles")))))
  1798. (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
  1799. (synopsis "Fungal gene predictor")
  1800. (description "CodingQuarry is a highly accurate, self-training GHMM fungal
  1801. gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
  1802. (home-page "https://sourceforge.net/projects/codingquarry/")
  1803. (license license:gpl3+)))
  1804. (define-public couger
  1805. (package
  1806. (name "couger")
  1807. (version "1.8.2")
  1808. (source (origin
  1809. (method url-fetch)
  1810. (uri (string-append
  1811. "http://couger.oit.duke.edu/static/assets/COUGER"
  1812. version ".zip"))
  1813. (sha256
  1814. (base32
  1815. "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
  1816. (build-system gnu-build-system)
  1817. (arguments
  1818. `(#:tests? #f
  1819. #:phases
  1820. (modify-phases %standard-phases
  1821. (delete 'configure)
  1822. (delete 'build)
  1823. (replace
  1824. 'install
  1825. (lambda* (#:key outputs #:allow-other-keys)
  1826. (let* ((out (assoc-ref outputs "out"))
  1827. (bin (string-append out "/bin")))
  1828. (copy-recursively "src" (string-append out "/src"))
  1829. (mkdir bin)
  1830. ;; Add "src" directory to module lookup path.
  1831. (substitute* "couger"
  1832. (("from argparse")
  1833. (string-append "import sys\nsys.path.append(\""
  1834. out "\")\nfrom argparse")))
  1835. (install-file "couger" bin))
  1836. #t))
  1837. (add-after
  1838. 'install 'wrap-program
  1839. (lambda* (#:key inputs outputs #:allow-other-keys)
  1840. ;; Make sure 'couger' runs with the correct PYTHONPATH.
  1841. (let* ((out (assoc-ref outputs "out"))
  1842. (path (getenv "PYTHONPATH")))
  1843. (wrap-program (string-append out "/bin/couger")
  1844. `("PYTHONPATH" ":" prefix (,path))))
  1845. #t)))))
  1846. (inputs
  1847. `(("python" ,python-2)
  1848. ("python2-pillow" ,python2-pillow)
  1849. ("python2-numpy" ,python2-numpy)
  1850. ("python2-scipy" ,python2-scipy)
  1851. ("python2-matplotlib" ,python2-matplotlib)))
  1852. (propagated-inputs
  1853. `(("r-minimal" ,r-minimal)
  1854. ("libsvm" ,libsvm)
  1855. ("randomjungle" ,randomjungle)))
  1856. (native-inputs
  1857. `(("unzip" ,unzip)))
  1858. (home-page "http://couger.oit.duke.edu")
  1859. (synopsis "Identify co-factors in sets of genomic regions")
  1860. (description
  1861. "COUGER can be applied to any two sets of genomic regions bound by
  1862. paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
  1863. putative co-factors that provide specificity to each TF. The framework
  1864. determines the genomic targets uniquely-bound by each TF, and identifies a
  1865. small set of co-factors that best explain the in vivo binding differences
  1866. between the two TFs.
  1867. COUGER uses classification algorithms (support vector machines and random
  1868. forests) with features that reflect the DNA binding specificities of putative
  1869. co-factors. The features are generated either from high-throughput TF-DNA
  1870. binding data (from protein binding microarray experiments), or from large
  1871. collections of DNA motifs.")
  1872. (license license:gpl3+)))
  1873. (define-public clustal-omega
  1874. (package
  1875. (name "clustal-omega")
  1876. (version "1.2.4")
  1877. (source (origin
  1878. (method url-fetch)
  1879. (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
  1880. version ".tar.gz"))
  1881. (sha256
  1882. (base32
  1883. "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
  1884. (build-system gnu-build-system)
  1885. (inputs
  1886. `(("argtable" ,argtable)))
  1887. (home-page "http://www.clustal.org/omega/")
  1888. (synopsis "Multiple sequence aligner for protein and DNA/RNA")
  1889. (description
  1890. "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
  1891. program for protein and DNA/RNA. It produces high quality MSAs and is capable
  1892. of handling data-sets of hundreds of thousands of sequences in reasonable
  1893. time.")
  1894. (license license:gpl2+)))
  1895. (define-public crossmap
  1896. (package
  1897. (name "crossmap")
  1898. (version "0.2.9")
  1899. (source (origin
  1900. (method url-fetch)
  1901. (uri (pypi-uri "CrossMap" version))
  1902. (sha256
  1903. (base32
  1904. "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
  1905. (build-system python-build-system)
  1906. (arguments `(#:python ,python-2))
  1907. (inputs
  1908. `(("python-bx-python" ,python2-bx-python)
  1909. ("python-numpy" ,python2-numpy)
  1910. ("python-pysam" ,python2-pysam)
  1911. ("zlib" ,zlib)))
  1912. (native-inputs
  1913. `(("python-cython" ,python2-cython)
  1914. ("python-nose" ,python2-nose)))
  1915. (home-page "http://crossmap.sourceforge.net/")
  1916. (synopsis "Convert genome coordinates between assemblies")
  1917. (description
  1918. "CrossMap is a program for conversion of genome coordinates or annotation
  1919. files between different genome assemblies. It supports most commonly used
  1920. file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
  1921. (license license:gpl2+)))
  1922. (define-public python-dnaio
  1923. (package
  1924. (name "python-dnaio")
  1925. (version "0.3")
  1926. (source
  1927. (origin
  1928. (method url-fetch)
  1929. (uri (pypi-uri "dnaio" version))
  1930. (sha256
  1931. (base32
  1932. "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
  1933. (build-system python-build-system)
  1934. (native-inputs
  1935. `(("python-cython" ,python-cython)
  1936. ("python-pytest" ,python-pytest)
  1937. ("python-xopen" ,python-xopen)))
  1938. (home-page "https://github.com/marcelm/dnaio/")
  1939. (synopsis "Read FASTA and FASTQ files efficiently")
  1940. (description
  1941. "dnaio is a Python library for fast parsing of FASTQ and also FASTA
  1942. files. The code was previously part of the cutadapt tool.")
  1943. (license license:expat)))
  1944. (define-public cutadapt
  1945. (package
  1946. (name "cutadapt")
  1947. (version "1.18")
  1948. (source (origin
  1949. (method git-fetch)
  1950. (uri (git-reference
  1951. (url "https://github.com/marcelm/cutadapt.git")
  1952. (commit (string-append "v" version))))
  1953. (file-name (git-file-name name version))
  1954. (sha256
  1955. (base32
  1956. "08bbfwyc0kvcd95jf2s95xiv9s3cbsxm39ydl0qck3fw3cviwxpg"))))
  1957. (build-system python-build-system)
  1958. (inputs
  1959. `(("python-dnaio" ,python-dnaio)
  1960. ("python-xopen" ,python-xopen)))
  1961. (native-inputs
  1962. `(("python-cython" ,python-cython)
  1963. ("python-pytest" ,python-pytest)))
  1964. (home-page "https://cutadapt.readthedocs.io/en/stable/")
  1965. (synopsis "Remove adapter sequences from nucleotide sequencing reads")
  1966. (description
  1967. "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
  1968. other types of unwanted sequence from high-throughput sequencing reads.")
  1969. (license license:expat)))
  1970. (define-public libbigwig
  1971. (package
  1972. (name "libbigwig")
  1973. (version "0.4.2")
  1974. (source (origin
  1975. (method git-fetch)
  1976. (uri (git-reference
  1977. (url "https://github.com/dpryan79/libBigWig.git")
  1978. (commit version)))
  1979. (file-name (string-append name "-" version "-checkout"))
  1980. (sha256
  1981. (base32
  1982. "0h2smg24v5srdcqzrmz2g23cmlp4va465mgx8r2z571sfz8pv454"))))
  1983. (build-system gnu-build-system)
  1984. (arguments
  1985. `(#:test-target "test"
  1986. #:tests? #f ; tests require access to the web
  1987. #:make-flags
  1988. (list "CC=gcc"
  1989. (string-append "prefix=" (assoc-ref %outputs "out")))
  1990. #:phases
  1991. (modify-phases %standard-phases
  1992. (delete 'configure))))
  1993. (inputs
  1994. `(("zlib" ,zlib)
  1995. ("curl" ,curl)))
  1996. (native-inputs
  1997. `(("doxygen" ,doxygen)
  1998. ;; Need for tests
  1999. ("python" ,python-2)))
  2000. (home-page "https://github.com/dpryan79/libBigWig")
  2001. (synopsis "C library for handling bigWig files")
  2002. (description
  2003. "This package provides a C library for parsing local and remote BigWig
  2004. files.")
  2005. (license license:expat)))
  2006. (define-public python-pybigwig
  2007. (package
  2008. (name "python-pybigwig")
  2009. (version "0.3.12")
  2010. (source (origin
  2011. (method url-fetch)
  2012. (uri (pypi-uri "pyBigWig" version))
  2013. (sha256
  2014. (base32
  2015. "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
  2016. (modules '((guix build utils)))
  2017. (snippet
  2018. '(begin
  2019. ;; Delete bundled libBigWig sources
  2020. (delete-file-recursively "libBigWig")
  2021. #t))))
  2022. (build-system python-build-system)
  2023. (arguments
  2024. `(#:phases
  2025. (modify-phases %standard-phases
  2026. (add-after 'unpack 'link-with-libBigWig
  2027. (lambda* (#:key inputs #:allow-other-keys)
  2028. (substitute* "setup.py"
  2029. (("libs=\\[") "libs=[\"BigWig\", "))
  2030. #t)))))
  2031. (propagated-inputs
  2032. `(("python-numpy" ,python-numpy)))
  2033. (inputs
  2034. `(("libbigwig" ,libbigwig)
  2035. ("zlib" ,zlib)
  2036. ("curl" ,curl)))
  2037. (home-page "https://github.com/dpryan79/pyBigWig")
  2038. (synopsis "Access bigWig files in Python using libBigWig")
  2039. (description
  2040. "This package provides Python bindings to the libBigWig library for
  2041. accessing bigWig files.")
  2042. (license license:expat)))
  2043. (define-public python2-pybigwig
  2044. (package-with-python2 python-pybigwig))
  2045. (define-public python-dendropy
  2046. (package
  2047. (name "python-dendropy")
  2048. (version "4.4.0")
  2049. (source
  2050. (origin
  2051. (method git-fetch)
  2052. ;; Source from GitHub so that tests are included.
  2053. (uri (git-reference
  2054. (url "https://github.com/jeetsukumaran/DendroPy.git")
  2055. (commit (string-append "v" version))))
  2056. (file-name (git-file-name name version))
  2057. (sha256
  2058. (base32
  2059. "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
  2060. (build-system python-build-system)
  2061. (home-page "http://packages.python.org/DendroPy/")
  2062. (synopsis "Library for phylogenetics and phylogenetic computing")
  2063. (description
  2064. "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
  2065. writing, simulation, processing and manipulation of phylogenetic
  2066. trees (phylogenies) and characters.")
  2067. (license license:bsd-3)))
  2068. (define-public python2-dendropy
  2069. (let ((base (package-with-python2 python-dendropy)))
  2070. (package
  2071. (inherit base)
  2072. (arguments
  2073. `(#:phases
  2074. (modify-phases %standard-phases
  2075. (add-after 'unpack 'remove-failing-test
  2076. (lambda _
  2077. ;; This test fails when the full test suite is run, as documented
  2078. ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
  2079. (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
  2080. (("test_collection_comments_and_annotations")
  2081. "do_not_test_collection_comments_and_annotations"))
  2082. #t)))
  2083. ,@(package-arguments base))))))
  2084. (define-public python-py2bit
  2085. (package
  2086. (name "python-py2bit")
  2087. (version "0.3.0")
  2088. (source
  2089. (origin
  2090. (method url-fetch)
  2091. (uri (pypi-uri "py2bit" version))
  2092. (sha256
  2093. (base32
  2094. "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
  2095. (build-system python-build-system)
  2096. (home-page "https://github.com/dpryan79/py2bit")
  2097. (synopsis "Access 2bit files using lib2bit")
  2098. (description
  2099. "This package provides Python bindings for lib2bit to access 2bit files
  2100. with Python.")
  2101. (license license:expat)))
  2102. (define-public deeptools
  2103. (package
  2104. (name "deeptools")
  2105. (version "3.1.3")
  2106. (source (origin
  2107. (method git-fetch)
  2108. (uri (git-reference
  2109. (url "https://github.com/deeptools/deepTools.git")
  2110. (commit version)))
  2111. (file-name (git-file-name name version))
  2112. (sha256
  2113. (base32
  2114. "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
  2115. (build-system python-build-system)
  2116. (arguments
  2117. `(#:phases
  2118. (modify-phases %standard-phases
  2119. ;; This phase fails, but it's not needed.
  2120. (delete 'reset-gzip-timestamps))))
  2121. (inputs
  2122. `(("python-plotly" ,python-plotly)
  2123. ("python-scipy" ,python-scipy)
  2124. ("python-numpy" ,python-numpy)
  2125. ("python-numpydoc" ,python-numpydoc)
  2126. ("python-matplotlib" ,python-matplotlib)
  2127. ("python-pysam" ,python-pysam)
  2128. ("python-py2bit" ,python-py2bit)
  2129. ("python-pybigwig" ,python-pybigwig)))
  2130. (native-inputs
  2131. `(("python-mock" ,python-mock) ;for tests
  2132. ("python-nose" ,python-nose) ;for tests
  2133. ("python-pytz" ,python-pytz))) ;for tests
  2134. (home-page "https://github.com/deeptools/deepTools")
  2135. (synopsis "Tools for normalizing and visualizing deep-sequencing data")
  2136. (description
  2137. "DeepTools addresses the challenge of handling the large amounts of data
  2138. that are now routinely generated from DNA sequencing centers. To do so,
  2139. deepTools contains useful modules to process the mapped reads data to create
  2140. coverage files in standard bedGraph and bigWig file formats. By doing so,
  2141. deepTools allows the creation of normalized coverage files or the comparison
  2142. between two files (for example, treatment and control). Finally, using such
  2143. normalized and standardized files, multiple visualizations can be created to
  2144. identify enrichments with functional annotations of the genome.")
  2145. (license license:gpl3+)))
  2146. (define-public delly
  2147. (package
  2148. (name "delly")
  2149. (version "0.7.9")
  2150. (source (origin
  2151. (method git-fetch)
  2152. (uri (git-reference
  2153. (url "https://github.com/dellytools/delly.git")
  2154. (commit (string-append "v" version))))
  2155. (file-name (git-file-name name version))
  2156. (sha256
  2157. (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
  2158. (modules '((guix build utils)))
  2159. (snippet
  2160. '(begin
  2161. (delete-file-recursively "src/htslib")
  2162. #t))))
  2163. (build-system gnu-build-system)
  2164. (arguments
  2165. `(#:tests? #f ; There are no tests to run.
  2166. #:make-flags
  2167. (list "PARALLEL=1" ; Allow parallel execution at run-time.
  2168. (string-append "prefix=" (assoc-ref %outputs "out")))
  2169. #:phases
  2170. (modify-phases %standard-phases
  2171. (delete 'configure) ; There is no configure phase.
  2172. (add-after 'install 'install-templates
  2173. (lambda* (#:key outputs #:allow-other-keys)
  2174. (let ((templates (string-append (assoc-ref outputs "out")
  2175. "/share/delly/templates")))
  2176. (mkdir-p templates)
  2177. (copy-recursively "excludeTemplates" templates)
  2178. #t))))))
  2179. (inputs
  2180. `(("boost" ,boost)
  2181. ("htslib" ,htslib)
  2182. ("zlib" ,zlib)
  2183. ("bzip2" ,bzip2)))
  2184. (home-page "https://github.com/dellytools/delly")
  2185. (synopsis "Integrated structural variant prediction method")
  2186. (description "Delly is an integrated structural variant prediction method
  2187. that can discover and genotype deletions, tandem duplications, inversions and
  2188. translocations at single-nucleotide resolution in short-read massively parallel
  2189. sequencing data. It uses paired-ends and split-reads to sensitively and
  2190. accurately delineate genomic rearrangements throughout the genome.")
  2191. (license license:gpl3+)))
  2192. (define-public diamond
  2193. (package
  2194. (name "diamond")
  2195. (version "0.9.22")
  2196. (source (origin
  2197. (method git-fetch)
  2198. (uri (git-reference
  2199. (url "https://github.com/bbuchfink/diamond.git")
  2200. (commit (string-append "v" version))))
  2201. (file-name (git-file-name name version))
  2202. (sha256
  2203. (base32
  2204. "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
  2205. (build-system cmake-build-system)
  2206. (arguments
  2207. '(#:tests? #f ; no "check" target
  2208. #:phases
  2209. (modify-phases %standard-phases
  2210. (add-after 'unpack 'remove-native-compilation
  2211. (lambda _
  2212. (substitute* "CMakeLists.txt" (("-march=native") ""))
  2213. #t)))))
  2214. (inputs
  2215. `(("zlib" ,zlib)))
  2216. (home-page "https://github.com/bbuchfink/diamond")
  2217. (synopsis "Accelerated BLAST compatible local sequence aligner")
  2218. (description
  2219. "DIAMOND is a BLAST-compatible local aligner for mapping protein and
  2220. translated DNA query sequences against a protein reference database (BLASTP
  2221. and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
  2222. reads at a typical sensitivity of 90-99% relative to BLAST depending on the
  2223. data and settings.")
  2224. (license license:agpl3+)))
  2225. (define-public discrover
  2226. (package
  2227. (name "discrover")
  2228. (version "1.6.0")
  2229. (source
  2230. (origin
  2231. (method git-fetch)
  2232. (uri (git-reference
  2233. (url "https://github.com/maaskola/discrover.git")
  2234. (commit version)))
  2235. (file-name (git-file-name name version))
  2236. (sha256
  2237. (base32
  2238. "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
  2239. (build-system cmake-build-system)
  2240. (arguments
  2241. `(#:tests? #f ; there are no tests
  2242. #:phases
  2243. (modify-phases %standard-phases
  2244. (add-after 'unpack 'fix-latex-errors
  2245. (lambda _
  2246. (with-fluids ((%default-port-encoding #f))
  2247. (substitute* "doc/references.bib"
  2248. (("\\{S\\}illanp[^,]+,")
  2249. "{S}illanp{\\\"a}{\\\"a},")))
  2250. ;; XXX: I just can't get pdflatex to not complain about these
  2251. ;; characters. They end up in the manual via the generated
  2252. ;; discrover-cli-help.txt.
  2253. (substitute* "src/hmm/cli.cpp"
  2254. (("µ") "mu")
  2255. (("η") "eta")
  2256. (("≤") "<="))
  2257. ;; This seems to be a syntax error.
  2258. (substitute* "doc/discrover-manual.tex"
  2259. (("theverbbox\\[t\\]") "theverbbox"))
  2260. #t))
  2261. (add-after 'unpack 'add-missing-includes
  2262. (lambda _
  2263. (substitute* "src/executioninformation.hpp"
  2264. (("#define EXECUTIONINFORMATION_HPP" line)
  2265. (string-append line "\n#include <random>")))
  2266. (substitute* "src/plasma/fasta.hpp"
  2267. (("#define FASTA_HPP" line)
  2268. (string-append line "\n#include <random>")))
  2269. #t))
  2270. ;; FIXME: this is needed because we're using texlive-union, which
  2271. ;; doesn't handle fonts correctly. It expects to be able to generate
  2272. ;; fonts in the home directory.
  2273. (add-before 'build 'setenv-HOME
  2274. (lambda _ (setenv "HOME" "/tmp") #t)))))
  2275. (inputs
  2276. `(("boost" ,boost)
  2277. ("cairo" ,cairo)
  2278. ("rmath-standalone" ,rmath-standalone)))
  2279. (native-inputs
  2280. `(("texlive" ,(texlive-union (list texlive-fonts-cm
  2281. texlive-fonts-amsfonts
  2282. texlive-generic-ifxetex
  2283. texlive-latex-doi
  2284. texlive-latex-examplep
  2285. texlive-latex-hyperref
  2286. texlive-latex-ms
  2287. texlive-latex-natbib
  2288. texlive-bibtex ; style files used by natbib
  2289. texlive-latex-oberdiek ; ltxcmds
  2290. texlive-latex-pgf ; tikz
  2291. texlive-latex-url
  2292. texlive-latex-verbatimbox
  2293. texlive-latex-xcolor)))
  2294. ("imagemagick" ,imagemagick)))
  2295. (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
  2296. (synopsis "Discover discriminative nucleotide sequence motifs")
  2297. (description "Discrover is a motif discovery method to find binding sites
  2298. of nucleic acid binding proteins.")
  2299. (license license:gpl3+)))
  2300. (define-public eigensoft
  2301. (package
  2302. (name "eigensoft")
  2303. (version "7.2.1")
  2304. (source
  2305. (origin
  2306. (method git-fetch)
  2307. (uri (git-reference
  2308. (url "https://github.com/DReichLab/EIG.git")
  2309. (commit (string-append "v" version))))
  2310. (file-name (git-file-name name version))
  2311. (sha256
  2312. (base32
  2313. "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
  2314. (modules '((guix build utils)))
  2315. ;; Remove pre-built binaries.
  2316. (snippet '(begin
  2317. (delete-file-recursively "bin")
  2318. (mkdir "bin")
  2319. #t))))
  2320. (build-system gnu-build-system)
  2321. (arguments
  2322. `(#:tests? #f ; There are no tests.
  2323. #:make-flags '("CC=gcc")
  2324. #:phases
  2325. (modify-phases %standard-phases
  2326. ;; There is no configure phase, but the Makefile is in a
  2327. ;; sub-directory.
  2328. (replace 'configure
  2329. (lambda _ (chdir "src") #t))
  2330. ;; The provided install target only copies executables to
  2331. ;; the "bin" directory in the build root.
  2332. (add-after 'install 'actually-install
  2333. (lambda* (#:key outputs #:allow-other-keys)
  2334. (let* ((out (assoc-ref outputs "out"))
  2335. (bin (string-append out "/bin")))
  2336. (for-each (lambda (file)
  2337. (install-file file bin))
  2338. (find-files "../bin" ".*"))
  2339. #t))))))
  2340. (inputs
  2341. `(("gsl" ,gsl)
  2342. ("lapack" ,lapack)
  2343. ("openblas" ,openblas)
  2344. ("perl" ,perl)
  2345. ("gfortran" ,gfortran "lib")))
  2346. (home-page "https://github.com/DReichLab/EIG")
  2347. (synopsis "Tools for population genetics")
  2348. (description "The EIGENSOFT package provides tools for population
  2349. genetics and stratification correction. EIGENSOFT implements methods commonly
  2350. used in population genetics analyses such as PCA, computation of Tracy-Widom
  2351. statistics, and finding related individuals in structured populations. It
  2352. comes with a built-in plotting script and supports multiple file formats and
  2353. quantitative phenotypes.")
  2354. ;; The license of the eigensoft tools is Expat, but since it's
  2355. ;; linking with the GNU Scientific Library (GSL) the effective
  2356. ;; license is the GPL.
  2357. (license license:gpl3+)))
  2358. (define-public edirect
  2359. (package
  2360. (name "edirect")
  2361. (version "10.2.20181018")
  2362. (source (origin
  2363. (method url-fetch)
  2364. (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
  2365. "/versions/" version
  2366. "/edirect-" version ".tar.gz"))
  2367. (sha256
  2368. (base32
  2369. "091f4aigzpbqih6h82nq566gkp3y07i72yqndmqskfgar1vwgci7"))))
  2370. (build-system perl-build-system)
  2371. (arguments
  2372. `(#:phases
  2373. (modify-phases %standard-phases
  2374. (delete 'configure)
  2375. (delete 'build)
  2376. (delete 'check) ; simple check after install
  2377. (replace 'install
  2378. (lambda* (#:key outputs #:allow-other-keys)
  2379. (install-file "edirect.pl"
  2380. (string-append (assoc-ref outputs "out") "/bin"))
  2381. #t))
  2382. (add-after 'install 'wrap-program
  2383. (lambda* (#:key outputs #:allow-other-keys)
  2384. ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
  2385. (let* ((out (assoc-ref outputs "out"))
  2386. (path (getenv "PERL5LIB")))
  2387. (wrap-program (string-append out "/bin/edirect.pl")
  2388. `("PERL5LIB" ":" prefix (,path))))
  2389. #t))
  2390. (add-after 'wrap-program 'check
  2391. (lambda* (#:key outputs #:allow-other-keys)
  2392. (invoke (string-append (assoc-ref outputs "out")
  2393. "/bin/edirect.pl")
  2394. "-filter" "-help")
  2395. #t)))))
  2396. (inputs
  2397. `(("perl-html-parser" ,perl-html-parser)
  2398. ("perl-encode-locale" ,perl-encode-locale)
  2399. ("perl-file-listing" ,perl-file-listing)
  2400. ("perl-html-tagset" ,perl-html-tagset)
  2401. ("perl-html-tree" ,perl-html-tree)
  2402. ("perl-http-cookies" ,perl-http-cookies)
  2403. ("perl-http-date" ,perl-http-date)
  2404. ("perl-http-message" ,perl-http-message)
  2405. ("perl-http-negotiate" ,perl-http-negotiate)
  2406. ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
  2407. ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
  2408. ("perl-net-http" ,perl-net-http)
  2409. ("perl-uri" ,perl-uri)
  2410. ("perl-www-robotrules" ,perl-www-robotrules)
  2411. ("perl-xml-simple" ,perl-xml-simple)
  2412. ("perl" ,perl)))
  2413. (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
  2414. (synopsis "Tools for accessing the NCBI's set of databases")
  2415. (description
  2416. "Entrez Direct (EDirect) is a method for accessing the National Center
  2417. for Biotechnology Information's (NCBI) set of interconnected
  2418. databases (publication, sequence, structure, gene, variation, expression,
  2419. etc.) from a terminal. Functions take search terms from command-line
  2420. arguments. Individual operations are combined to build multi-step queries.
  2421. Record retrieval and formatting normally complete the process.
  2422. EDirect also provides an argument-driven function that simplifies the
  2423. extraction of data from document summaries or other results that are returned
  2424. in structured XML format. This can eliminate the need for writing custom
  2425. software to answer ad hoc questions.")
  2426. (license license:public-domain)))
  2427. (define-public exonerate
  2428. (package
  2429. (name "exonerate")
  2430. (version "2.4.0")
  2431. (source
  2432. (origin
  2433. (method url-fetch)
  2434. (uri
  2435. (string-append
  2436. "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
  2437. "exonerate-" version ".tar.gz"))
  2438. (sha256
  2439. (base32
  2440. "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
  2441. (build-system gnu-build-system)
  2442. (arguments
  2443. `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
  2444. (native-inputs
  2445. `(("pkg-config" ,pkg-config)))
  2446. (inputs
  2447. `(("glib" ,glib)))
  2448. (home-page
  2449. "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
  2450. (synopsis "Generic tool for biological sequence alignment")
  2451. (description
  2452. "Exonerate is a generic tool for pairwise sequence comparison. It allows
  2453. the alignment of sequences using a many alignment models, either exhaustive
  2454. dynamic programming or a variety of heuristics.")
  2455. (license license:gpl3)))
  2456. (define-public express
  2457. (package
  2458. (name "express")
  2459. (version "1.5.1")
  2460. (source (origin
  2461. (method url-fetch)
  2462. (uri
  2463. (string-append
  2464. "http://bio.math.berkeley.edu/eXpress/downloads/express-"
  2465. version "/express-" version "-src.tgz"))
  2466. (sha256
  2467. (base32
  2468. "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
  2469. (build-system cmake-build-system)
  2470. (arguments
  2471. `(#:tests? #f ;no "check" target
  2472. #:phases
  2473. (modify-phases %standard-phases
  2474. (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
  2475. (lambda* (#:key inputs #:allow-other-keys)
  2476. (substitute* "CMakeLists.txt"
  2477. (("set\\(Boost_USE_STATIC_LIBS ON\\)")
  2478. "set(Boost_USE_STATIC_LIBS OFF)")
  2479. (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
  2480. (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
  2481. (substitute* "src/CMakeLists.txt"
  2482. (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
  2483. (string-append (assoc-ref inputs "bamtools") "/lib"))
  2484. (("libprotobuf.a") "libprotobuf.so"))
  2485. #t)))))
  2486. (inputs
  2487. `(("boost" ,boost)
  2488. ("bamtools" ,bamtools)
  2489. ("protobuf" ,protobuf)
  2490. ("zlib" ,zlib)))
  2491. (home-page "http://bio.math.berkeley.edu/eXpress")
  2492. (synopsis "Streaming quantification for high-throughput genomic sequencing")
  2493. (description
  2494. "eXpress is a streaming tool for quantifying the abundances of a set of
  2495. target sequences from sampled subsequences. Example applications include
  2496. transcript-level RNA-Seq quantification, allele-specific/haplotype expression
  2497. analysis (from RNA-Seq), transcription factor binding quantification in
  2498. ChIP-Seq, and analysis of metagenomic data.")
  2499. (license license:artistic2.0)))
  2500. (define-public express-beta-diversity
  2501. (package
  2502. (name "express-beta-diversity")
  2503. (version "1.0.8")
  2504. (source (origin
  2505. (method git-fetch)
  2506. (uri (git-reference
  2507. (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
  2508. (commit (string-append "v" version))))
  2509. (file-name (git-file-name name version))
  2510. (sha256
  2511. (base32
  2512. "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
  2513. (build-system gnu-build-system)
  2514. (arguments
  2515. `(#:phases
  2516. (modify-phases %standard-phases
  2517. (delete 'configure)
  2518. (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
  2519. (replace 'check
  2520. (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
  2521. (replace 'install
  2522. (lambda* (#:key outputs #:allow-other-keys)
  2523. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  2524. (install-file "../scripts/convertToEBD.py" bin)
  2525. (install-file "../bin/ExpressBetaDiversity" bin)
  2526. #t))))))
  2527. (inputs
  2528. `(("python" ,python-2)))
  2529. (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
  2530. (synopsis "Taxon- and phylogenetic-based beta diversity measures")
  2531. (description
  2532. "Express Beta Diversity (EBD) calculates ecological beta diversity
  2533. (dissimilarity) measures between biological communities. EBD implements a
  2534. variety of diversity measures including those that make use of phylogenetic
  2535. similarity of community members.")
  2536. (license license:gpl3+)))
  2537. (define-public fasttree
  2538. (package
  2539. (name "fasttree")
  2540. (version "2.1.10")
  2541. (source (origin
  2542. (method url-fetch)
  2543. (uri (string-append
  2544. "http://www.microbesonline.org/fasttree/FastTree-"
  2545. version ".c"))
  2546. (sha256
  2547. (base32
  2548. "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
  2549. (build-system gnu-build-system)
  2550. (arguments
  2551. `(#:tests? #f ; no "check" target
  2552. #:phases
  2553. (modify-phases %standard-phases
  2554. (delete 'unpack)
  2555. (delete 'configure)
  2556. (replace 'build
  2557. (lambda* (#:key source #:allow-other-keys)
  2558. (invoke "gcc"
  2559. "-O3"
  2560. "-finline-functions"
  2561. "-funroll-loops"
  2562. "-Wall"
  2563. "-o"
  2564. "FastTree"
  2565. source
  2566. "-lm")
  2567. (invoke "gcc"
  2568. "-DOPENMP"
  2569. "-fopenmp"
  2570. "-O3"
  2571. "-finline-functions"
  2572. "-funroll-loops"
  2573. "-Wall"
  2574. "-o"
  2575. "FastTreeMP"
  2576. source
  2577. "-lm")
  2578. #t))
  2579. (replace 'install
  2580. (lambda* (#:key outputs #:allow-other-keys)
  2581. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  2582. (install-file "FastTree" bin)
  2583. (install-file "FastTreeMP" bin)
  2584. #t))))))
  2585. (home-page "http://www.microbesonline.org/fasttree")
  2586. (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
  2587. (description
  2588. "FastTree can handle alignments with up to a million of sequences in a
  2589. reasonable amount of time and memory. For large alignments, FastTree is
  2590. 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
  2591. (license license:gpl2+)))
  2592. (define-public fastx-toolkit
  2593. (package
  2594. (name "fastx-toolkit")
  2595. (version "0.0.14")
  2596. (source (origin
  2597. (method url-fetch)
  2598. (uri
  2599. (string-append
  2600. "https://github.com/agordon/fastx_toolkit/releases/download/"
  2601. version "/fastx_toolkit-" version ".tar.bz2"))
  2602. (sha256
  2603. (base32
  2604. "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
  2605. (build-system gnu-build-system)
  2606. (inputs
  2607. `(("libgtextutils" ,libgtextutils)))
  2608. (native-inputs
  2609. `(("pkg-config" ,pkg-config)))
  2610. (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
  2611. (synopsis "Tools for FASTA/FASTQ file preprocessing")
  2612. (description
  2613. "The FASTX-Toolkit is a collection of command line tools for Short-Reads
  2614. FASTA/FASTQ files preprocessing.
  2615. Next-Generation sequencing machines usually produce FASTA or FASTQ files,
  2616. containing multiple short-reads sequences. The main processing of such
  2617. FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
  2618. is sometimes more productive to preprocess the files before mapping the
  2619. sequences to the genome---manipulating the sequences to produce better mapping
  2620. results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
  2621. (license license:agpl3+)))
  2622. (define-public flexbar
  2623. (package
  2624. (name "flexbar")
  2625. (version "3.4.0")
  2626. (source (origin
  2627. (method git-fetch)
  2628. (uri (git-reference
  2629. (url "https://github.com/seqan/flexbar.git")
  2630. (commit (string-append "v" version))))
  2631. (file-name (git-file-name name version))
  2632. (sha256
  2633. (base32
  2634. "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
  2635. (build-system cmake-build-system)
  2636. (arguments
  2637. `(#:phases
  2638. (modify-phases %standard-phases
  2639. (replace 'check
  2640. (lambda* (#:key outputs #:allow-other-keys)
  2641. (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
  2642. (with-directory-excursion "../source/test"
  2643. (invoke "bash" "flexbar_test.sh"))
  2644. #t))
  2645. (replace 'install
  2646. (lambda* (#:key outputs #:allow-other-keys)
  2647. (let* ((out (string-append (assoc-ref outputs "out")))
  2648. (bin (string-append out "/bin/")))
  2649. (install-file "flexbar" bin))
  2650. #t)))))
  2651. (inputs
  2652. `(("tbb" ,tbb)
  2653. ("zlib" ,zlib)))
  2654. (native-inputs
  2655. `(("pkg-config" ,pkg-config)
  2656. ("seqan" ,seqan)))
  2657. (home-page "https://github.com/seqan/flexbar")
  2658. (synopsis "Barcode and adapter removal tool for sequencing platforms")
  2659. (description
  2660. "Flexbar preprocesses high-throughput nucleotide sequencing data
  2661. efficiently. It demultiplexes barcoded runs and removes adapter sequences.
  2662. Moreover, trimming and filtering features are provided. Flexbar increases
  2663. read mapping rates and improves genome and transcriptome assemblies. It
  2664. supports next-generation sequencing data in fasta/q and csfasta/q format from
  2665. Illumina, Roche 454, and the SOLiD platform.")
  2666. (license license:bsd-3)))
  2667. (define-public fraggenescan
  2668. (package
  2669. (name "fraggenescan")
  2670. (version "1.30")
  2671. (source
  2672. (origin
  2673. (method url-fetch)
  2674. (uri
  2675. (string-append "mirror://sourceforge/fraggenescan/"
  2676. "FragGeneScan" version ".tar.gz"))
  2677. (sha256
  2678. (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
  2679. (build-system gnu-build-system)
  2680. (arguments
  2681. `(#:phases
  2682. (modify-phases %standard-phases
  2683. (delete 'configure)
  2684. (add-before 'build 'patch-paths
  2685. (lambda* (#:key outputs #:allow-other-keys)
  2686. (let* ((out (string-append (assoc-ref outputs "out")))
  2687. (share (string-append out "/share/fraggenescan/")))
  2688. (substitute* "run_FragGeneScan.pl"
  2689. (("system\\(\"rm")
  2690. (string-append "system(\"" (which "rm")))
  2691. (("system\\(\"mv")
  2692. (string-append "system(\"" (which "mv")))
  2693. (("\\\"awk") (string-append "\"" (which "awk")))
  2694. ;; This script and other programs expect the training files
  2695. ;; to be in the non-standard location bin/train/XXX. Change
  2696. ;; this to be share/fraggenescan/train/XXX instead.
  2697. (("^\\$train.file = \\$dir.*")
  2698. (string-append "$train_file = \""
  2699. share
  2700. "train/\".$FGS_train_file;")))
  2701. (substitute* "run_hmm.c"
  2702. (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
  2703. (string-append " strcpy(train_dir, \"" share "/train/\");"))))
  2704. #t))
  2705. (replace 'build
  2706. (lambda _
  2707. (invoke "make" "clean")
  2708. (invoke "make" "fgs")
  2709. #t))
  2710. (replace 'install
  2711. (lambda* (#:key outputs #:allow-other-keys)
  2712. (let* ((out (string-append (assoc-ref outputs "out")))
  2713. (bin (string-append out "/bin/"))
  2714. (share (string-append out "/share/fraggenescan/train")))
  2715. (install-file "run_FragGeneScan.pl" bin)
  2716. (install-file "FragGeneScan" bin)
  2717. (copy-recursively "train" share))
  2718. #t))
  2719. (delete 'check)
  2720. (add-after 'install 'post-install-check
  2721. ;; In lieu of 'make check', run one of the examples and check the
  2722. ;; output files gets created.
  2723. (lambda* (#:key outputs #:allow-other-keys)
  2724. (let* ((out (string-append (assoc-ref outputs "out")))
  2725. (bin (string-append out "/bin/"))
  2726. (frag (string-append bin "run_FragGeneScan.pl")))
  2727. ;; Test complete genome.
  2728. (invoke frag
  2729. "-genome=./example/NC_000913.fna"
  2730. "-out=./test2"
  2731. "-complete=1"
  2732. "-train=complete")
  2733. (unless (and (file-exists? "test2.faa")
  2734. (file-exists? "test2.ffn")
  2735. (file-exists? "test2.gff")
  2736. (file-exists? "test2.out"))
  2737. (error "Expected files do not exist."))
  2738. ;; Test incomplete sequences.
  2739. (invoke frag
  2740. "-genome=./example/NC_000913-fgs.ffn"
  2741. "-out=out"
  2742. "-complete=0"
  2743. "-train=454_30")
  2744. #t))))))
  2745. (inputs
  2746. `(("perl" ,perl)
  2747. ("python" ,python-2))) ;not compatible with python 3.
  2748. (home-page "https://sourceforge.net/projects/fraggenescan/")
  2749. (synopsis "Finds potentially fragmented genes in short reads")
  2750. (description
  2751. "FragGeneScan is a program for predicting bacterial and archaeal genes in
  2752. short and error-prone DNA sequencing reads. It can also be applied to predict
  2753. genes in incomplete assemblies or complete genomes.")
  2754. ;; GPL3+ according to private correspondense with the authors.
  2755. (license license:gpl3+)))
  2756. (define-public fxtract
  2757. (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
  2758. (package
  2759. (name "fxtract")
  2760. (version "2.3")
  2761. (source
  2762. (origin
  2763. (method git-fetch)
  2764. (uri (git-reference
  2765. (url "https://github.com/ctSkennerton/fxtract.git")
  2766. (commit version)))
  2767. (file-name (git-file-name name version))
  2768. (sha256
  2769. (base32
  2770. "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
  2771. (build-system gnu-build-system)
  2772. (arguments
  2773. `(#:make-flags (list
  2774. (string-append "PREFIX=" (assoc-ref %outputs "out"))
  2775. "CC=gcc")
  2776. #:test-target "fxtract_test"
  2777. #:phases
  2778. (modify-phases %standard-phases
  2779. (delete 'configure)
  2780. (add-before 'build 'copy-util
  2781. (lambda* (#:key inputs #:allow-other-keys)
  2782. (rmdir "util")
  2783. (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
  2784. #t))
  2785. ;; Do not use make install as this requires additional dependencies.
  2786. (replace 'install
  2787. (lambda* (#:key outputs #:allow-other-keys)
  2788. (let* ((out (assoc-ref outputs "out"))
  2789. (bin (string-append out"/bin")))
  2790. (install-file "fxtract" bin)
  2791. #t))))))
  2792. (inputs
  2793. `(("pcre" ,pcre)
  2794. ("zlib" ,zlib)))
  2795. (native-inputs
  2796. ;; ctskennerton-util is licensed under GPL2.
  2797. `(("ctskennerton-util"
  2798. ,(origin
  2799. (method git-fetch)
  2800. (uri (git-reference
  2801. (url "https://github.com/ctSkennerton/util.git")
  2802. (commit util-commit)))
  2803. (file-name (string-append
  2804. "ctstennerton-util-" util-commit "-checkout"))
  2805. (sha256
  2806. (base32
  2807. "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
  2808. (home-page "https://github.com/ctSkennerton/fxtract")
  2809. (synopsis "Extract sequences from FASTA and FASTQ files")
  2810. (description
  2811. "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
  2812. or FASTQ) file given a subsequence. It uses a simple substring search for
  2813. basic tasks but can change to using POSIX regular expressions, PCRE, hash
  2814. lookups or multi-pattern searching as required. By default fxtract looks in
  2815. the sequence of each record but can also be told to look in the header,
  2816. comment or quality sections.")
  2817. ;; 'util' requires SSE instructions.
  2818. (supported-systems '("x86_64-linux"))
  2819. (license license:expat))))
  2820. (define-public gemma
  2821. (package
  2822. (name "gemma")
  2823. (version "0.98")
  2824. (source (origin
  2825. (method git-fetch)
  2826. (uri (git-reference
  2827. (url "https://github.com/xiangzhou/GEMMA.git")
  2828. (commit (string-append "v" version))))
  2829. (file-name (git-file-name name version))
  2830. (sha256
  2831. (base32
  2832. "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
  2833. (inputs
  2834. `(("eigen" ,eigen)
  2835. ("gfortran" ,gfortran "lib")
  2836. ("gsl" ,gsl)
  2837. ("lapack" ,lapack)
  2838. ("openblas" ,openblas)
  2839. ("zlib" ,zlib)))
  2840. (build-system gnu-build-system)
  2841. (arguments
  2842. `(#:make-flags
  2843. '(,@(match (%current-system)
  2844. ("x86_64-linux"
  2845. '("FORCE_DYNAMIC=1"))
  2846. ("i686-linux"
  2847. '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
  2848. (_
  2849. '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
  2850. #:phases
  2851. (modify-phases %standard-phases
  2852. (delete 'configure)
  2853. (add-after 'unpack 'find-eigen
  2854. (lambda* (#:key inputs #:allow-other-keys)
  2855. ;; Ensure that Eigen headers can be found
  2856. (setenv "CPLUS_INCLUDE_PATH"
  2857. (string-append (getenv "CPLUS_INCLUDE_PATH")
  2858. ":"
  2859. (assoc-ref inputs "eigen")
  2860. "/include/eigen3"))
  2861. #t))
  2862. (add-before 'build 'bin-mkdir
  2863. (lambda _
  2864. (mkdir-p "bin")
  2865. #t))
  2866. (replace 'install
  2867. (lambda* (#:key outputs #:allow-other-keys)
  2868. (let ((out (assoc-ref outputs "out")))
  2869. (install-file "bin/gemma"
  2870. (string-append
  2871. out "/bin")))
  2872. #t)))
  2873. #:tests? #f)) ; no tests included yet
  2874. (home-page "https://github.com/xiangzhou/GEMMA")
  2875. (synopsis "Tool for genome-wide efficient mixed model association")
  2876. (description
  2877. "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
  2878. standard linear mixed model resolver with application in genome-wide
  2879. association studies (GWAS).")
  2880. (license license:gpl3)))
  2881. (define-public grit
  2882. (package
  2883. (name "grit")
  2884. (version "2.0.5")
  2885. (source (origin
  2886. (method git-fetch)
  2887. (uri (git-reference
  2888. (url "https://github.com/nboley/grit.git")
  2889. (commit version)))
  2890. (file-name (git-file-name name version))
  2891. (sha256
  2892. (base32
  2893. "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
  2894. (build-system python-build-system)
  2895. (arguments
  2896. `(#:python ,python-2
  2897. #:phases
  2898. (modify-phases %standard-phases
  2899. (add-after 'unpack 'generate-from-cython-sources
  2900. (lambda* (#:key inputs outputs #:allow-other-keys)
  2901. ;; Delete these C files to force fresh generation from pyx sources.
  2902. (delete-file "grit/sparsify_support_fns.c")
  2903. (delete-file "grit/call_peaks_support_fns.c")
  2904. (substitute* "setup.py"
  2905. (("Cython.Setup") "Cython.Build"))
  2906. #t)))))
  2907. (inputs
  2908. `(("python-scipy" ,python2-scipy)
  2909. ("python-numpy" ,python2-numpy)
  2910. ("python-pysam" ,python2-pysam)
  2911. ("python-networkx" ,python2-networkx)))
  2912. (native-inputs
  2913. `(("python-cython" ,python2-cython)))
  2914. (home-page "http://grit-bio.org")
  2915. (synopsis "Tool for integrative analysis of RNA-seq type assays")
  2916. (description
  2917. "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
  2918. full length transcript models. When none of these data sources are available,
  2919. GRIT can be run by providing a candidate set of TES or TSS sites. In
  2920. addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
  2921. also be run in quantification mode, where it uses a provided GTF file and just
  2922. estimates transcript expression.")
  2923. (license license:gpl3+)))
  2924. (define-public hisat
  2925. (package
  2926. (name "hisat")
  2927. (version "0.1.4")
  2928. (source (origin
  2929. (method url-fetch)
  2930. (uri (string-append
  2931. "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
  2932. version "-beta-source.zip"))
  2933. (sha256
  2934. (base32
  2935. "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
  2936. (build-system gnu-build-system)
  2937. (arguments
  2938. `(#:tests? #f ;no check target
  2939. #:make-flags '("allall"
  2940. ;; Disable unsupported `popcnt' instructions on
  2941. ;; architectures other than x86_64
  2942. ,@(if (string-prefix? "x86_64"
  2943. (or (%current-target-system)
  2944. (%current-system)))
  2945. '()
  2946. '("POPCNT_CAPABILITY=0")))
  2947. #:phases
  2948. (modify-phases %standard-phases
  2949. (add-after 'unpack 'patch-sources
  2950. (lambda _
  2951. ;; XXX Cannot use snippet because zip files are not supported
  2952. (substitute* "Makefile"
  2953. (("^CC = .*$") "CC = gcc")
  2954. (("^CPP = .*$") "CPP = g++")
  2955. ;; replace BUILD_HOST and BUILD_TIME for deterministic build
  2956. (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
  2957. (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
  2958. (substitute* '("hisat-build" "hisat-inspect")
  2959. (("/usr/bin/env") (which "env")))
  2960. #t))
  2961. (replace 'install
  2962. (lambda* (#:key outputs #:allow-other-keys)
  2963. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  2964. (for-each (lambda (file)
  2965. (install-file file bin))
  2966. (find-files
  2967. "."
  2968. "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
  2969. #t))
  2970. (delete 'configure))))
  2971. (native-inputs
  2972. `(("unzip" ,unzip)))
  2973. (inputs
  2974. `(("perl" ,perl)
  2975. ("python" ,python)
  2976. ("zlib" ,zlib)))
  2977. ;; Non-portable SSE instructions are used so building fails on platforms
  2978. ;; other than x86_64.
  2979. (supported-systems '("x86_64-linux"))
  2980. (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
  2981. (synopsis "Hierarchical indexing for spliced alignment of transcripts")
  2982. (description
  2983. "HISAT is a fast and sensitive spliced alignment program for mapping
  2984. RNA-seq reads. In addition to one global FM index that represents a whole
  2985. genome, HISAT uses a large set of small FM indexes that collectively cover the
  2986. whole genome. These small indexes (called local indexes) combined with
  2987. several alignment strategies enable effective alignment of RNA-seq reads, in
  2988. particular, reads spanning multiple exons.")
  2989. (license license:gpl3+)))
  2990. (define-public hisat2
  2991. (package
  2992. (name "hisat2")
  2993. (version "2.0.5")
  2994. (source
  2995. (origin
  2996. (method url-fetch)
  2997. (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
  2998. "/downloads/hisat2-" version "-source.zip"))
  2999. (sha256
  3000. (base32
  3001. "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
  3002. (build-system gnu-build-system)
  3003. (arguments
  3004. `(#:tests? #f ; no check target
  3005. #:make-flags (list "CC=gcc" "CXX=g++" "allall")
  3006. #:modules ((guix build gnu-build-system)
  3007. (guix build utils)
  3008. (srfi srfi-26))
  3009. #:phases
  3010. (modify-phases %standard-phases
  3011. (add-after 'unpack 'make-deterministic
  3012. (lambda _
  3013. (substitute* "Makefile"
  3014. (("`date`") "0"))
  3015. #t))
  3016. (delete 'configure)
  3017. (replace 'install
  3018. (lambda* (#:key outputs #:allow-other-keys)
  3019. (let* ((out (assoc-ref outputs "out"))
  3020. (bin (string-append out "/bin/"))
  3021. (doc (string-append out "/share/doc/hisat2/")))
  3022. (for-each
  3023. (cut install-file <> bin)
  3024. (find-files "."
  3025. "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
  3026. (mkdir-p doc)
  3027. (install-file "doc/manual.inc.html" doc))
  3028. #t)))))
  3029. (native-inputs
  3030. `(("unzip" ,unzip) ; needed for archive from ftp
  3031. ("perl" ,perl)
  3032. ("pandoc" ,ghc-pandoc))) ; for documentation
  3033. (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
  3034. (synopsis "Graph-based alignment of genomic sequencing reads")
  3035. (description "HISAT2 is a fast and sensitive alignment program for mapping
  3036. next-generation sequencing reads (both DNA and RNA) to a population of human
  3037. genomes (as well as to a single reference genome). In addition to using one
  3038. global @dfn{graph FM} (GFM) index that represents a population of human
  3039. genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
  3040. the whole genome. These small indexes, combined with several alignment
  3041. strategies, enable rapid and accurate alignment of sequencing reads. This new
  3042. indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
  3043. ;; HISAT2 contains files from Bowtie2, which is released under
  3044. ;; GPLv2 or later. The HISAT2 source files are released under
  3045. ;; GPLv3 or later.
  3046. (license license:gpl3+)))
  3047. (define-public hmmer
  3048. (package
  3049. (name "hmmer")
  3050. (version "3.2.1")
  3051. (source
  3052. (origin
  3053. (method url-fetch)
  3054. (uri (string-append
  3055. "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
  3056. (sha256
  3057. (base32
  3058. "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
  3059. (build-system gnu-build-system)
  3060. (native-inputs `(("perl" ,perl)))
  3061. (home-page "http://hmmer.org/")
  3062. (synopsis "Biosequence analysis using profile hidden Markov models")
  3063. (description
  3064. "HMMER is used for searching sequence databases for homologs of protein
  3065. sequences, and for making protein sequence alignments. It implements methods
  3066. using probabilistic models called profile hidden Markov models (profile
  3067. HMMs).")
  3068. ;; hmmer uses non-portable SSE intrinsics so building fails on other
  3069. ;; platforms.
  3070. (supported-systems '("x86_64-linux" "i686-linux"))
  3071. (license license:bsd-3)))
  3072. (define-public htseq
  3073. (package
  3074. (name "htseq")
  3075. (version "0.9.1")
  3076. (source (origin
  3077. (method url-fetch)
  3078. (uri (pypi-uri "HTSeq" version))
  3079. (sha256
  3080. (base32
  3081. "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
  3082. (build-system python-build-system)
  3083. (native-inputs
  3084. `(("python-cython" ,python-cython)))
  3085. ;; Numpy needs to be propagated when htseq is used as a Python library.
  3086. (propagated-inputs
  3087. `(("python-numpy" ,python-numpy)))
  3088. (inputs
  3089. `(("python-pysam" ,python-pysam)
  3090. ("python-matplotlib" ,python-matplotlib)))
  3091. (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
  3092. (synopsis "Analysing high-throughput sequencing data with Python")
  3093. (description
  3094. "HTSeq is a Python package that provides infrastructure to process data
  3095. from high-throughput sequencing assays.")
  3096. (license license:gpl3+)))
  3097. (define-public python2-htseq
  3098. (package-with-python2 htseq))
  3099. (define-public java-htsjdk
  3100. (package
  3101. (name "java-htsjdk")
  3102. (version "2.3.0") ; last version without build dependency on gradle
  3103. (source (origin
  3104. (method git-fetch)
  3105. (uri (git-reference
  3106. (url "https://github.com/samtools/htsjdk.git")
  3107. (commit version)))
  3108. (file-name (git-file-name name version))
  3109. (sha256
  3110. (base32
  3111. "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
  3112. (modules '((guix build utils)))
  3113. (snippet
  3114. ;; Delete pre-built binaries
  3115. '(begin
  3116. (delete-file-recursively "lib")
  3117. (mkdir-p "lib")
  3118. #t))))
  3119. (build-system ant-build-system)
  3120. (arguments
  3121. `(#:tests? #f ; test require Internet access
  3122. #:jdk ,icedtea-8
  3123. #:make-flags
  3124. (list (string-append "-Ddist=" (assoc-ref %outputs "out")
  3125. "/share/java/htsjdk/"))
  3126. #:build-target "all"
  3127. #:phases
  3128. (modify-phases %standard-phases
  3129. ;; The build phase also installs the jars
  3130. (delete 'install))))
  3131. (inputs
  3132. `(("java-ngs" ,java-ngs)
  3133. ("java-snappy-1" ,java-snappy-1)
  3134. ("java-commons-compress" ,java-commons-compress)
  3135. ("java-commons-logging-minimal" ,java-commons-logging-minimal)
  3136. ("java-commons-jexl-2" ,java-commons-jexl-2)
  3137. ("java-xz" ,java-xz)))
  3138. (native-inputs
  3139. `(("java-testng" ,java-testng)))
  3140. (home-page "http://samtools.github.io/htsjdk/")
  3141. (synopsis "Java API for high-throughput sequencing data (HTS) formats")
  3142. (description
  3143. "HTSJDK is an implementation of a unified Java library for accessing
  3144. common file formats, such as SAM and VCF, used for high-throughput
  3145. sequencing (HTS) data. There are also an number of useful utilities for
  3146. manipulating HTS data.")
  3147. (license license:expat)))
  3148. (define-public java-htsjdk-latest
  3149. (package
  3150. (name "java-htsjdk")
  3151. (version "2.14.3")
  3152. (source (origin
  3153. (method git-fetch)
  3154. (uri (git-reference
  3155. (url "https://github.com/samtools/htsjdk.git")
  3156. (commit version)))
  3157. (file-name (string-append name "-" version "-checkout"))
  3158. (sha256
  3159. (base32
  3160. "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
  3161. (build-system ant-build-system)
  3162. (arguments
  3163. `(#:tests? #f ; test require Scala
  3164. #:jdk ,icedtea-8
  3165. #:jar-name "htsjdk.jar"
  3166. #:phases
  3167. (modify-phases %standard-phases
  3168. (add-after 'unpack 'remove-useless-build.xml
  3169. (lambda _ (delete-file "build.xml") #t))
  3170. ;; The tests require the scalatest package.
  3171. (add-after 'unpack 'remove-tests
  3172. (lambda _ (delete-file-recursively "src/test") #t)))))
  3173. (inputs
  3174. `(("java-ngs" ,java-ngs)
  3175. ("java-snappy-1" ,java-snappy-1)
  3176. ("java-commons-compress" ,java-commons-compress)
  3177. ("java-commons-logging-minimal" ,java-commons-logging-minimal)
  3178. ("java-commons-jexl-2" ,java-commons-jexl-2)
  3179. ("java-xz" ,java-xz)))
  3180. (native-inputs
  3181. `(("java-junit" ,java-junit)))
  3182. (home-page "http://samtools.github.io/htsjdk/")
  3183. (synopsis "Java API for high-throughput sequencing data (HTS) formats")
  3184. (description
  3185. "HTSJDK is an implementation of a unified Java library for accessing
  3186. common file formats, such as SAM and VCF, used for high-throughput
  3187. sequencing (HTS) data. There are also an number of useful utilities for
  3188. manipulating HTS data.")
  3189. (license license:expat)))
  3190. ;; This is needed for picard 2.10.3
  3191. (define-public java-htsjdk-2.10.1
  3192. (package (inherit java-htsjdk-latest)
  3193. (name "java-htsjdk")
  3194. (version "2.10.1")
  3195. (source (origin
  3196. (method git-fetch)
  3197. (uri (git-reference
  3198. (url "https://github.com/samtools/htsjdk.git")
  3199. (commit version)))
  3200. (file-name (string-append name "-" version "-checkout"))
  3201. (sha256
  3202. (base32
  3203. "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
  3204. (build-system ant-build-system)
  3205. (arguments
  3206. `(#:tests? #f ; tests require Scala
  3207. #:jdk ,icedtea-8
  3208. #:jar-name "htsjdk.jar"
  3209. #:phases
  3210. (modify-phases %standard-phases
  3211. (add-after 'unpack 'remove-useless-build.xml
  3212. (lambda _ (delete-file "build.xml") #t))
  3213. ;; The tests require the scalatest package.
  3214. (add-after 'unpack 'remove-tests
  3215. (lambda _ (delete-file-recursively "src/test") #t)))))))
  3216. ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
  3217. ;; recent version of java-htsjdk, which depends on gradle.
  3218. (define-public java-picard
  3219. (package
  3220. (name "java-picard")
  3221. (version "2.3.0")
  3222. (source (origin
  3223. (method git-fetch)
  3224. (uri (git-reference
  3225. (url "https://github.com/broadinstitute/picard.git")
  3226. (commit version)))
  3227. (file-name (string-append "java-picard-" version "-checkout"))
  3228. (sha256
  3229. (base32
  3230. "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
  3231. (modules '((guix build utils)))
  3232. (snippet
  3233. '(begin
  3234. ;; Delete pre-built binaries.
  3235. (delete-file-recursively "lib")
  3236. (mkdir-p "lib")
  3237. (substitute* "build.xml"
  3238. ;; Remove build-time dependency on git.
  3239. (("failifexecutionfails=\"true\"")
  3240. "failifexecutionfails=\"false\"")
  3241. ;; Use our htsjdk.
  3242. (("depends=\"compile-htsjdk, ")
  3243. "depends=\"")
  3244. (("depends=\"compile-htsjdk-tests, ")
  3245. "depends=\"")
  3246. ;; Build picard-lib.jar before building picard.jar
  3247. (("name=\"picard-jar\" depends=\"" line)
  3248. (string-append line "picard-lib-jar, ")))
  3249. #t))))
  3250. (build-system ant-build-system)
  3251. (arguments
  3252. `(#:build-target "picard-jar"
  3253. #:test-target "test"
  3254. ;; Tests require jacoco:coverage.
  3255. #:tests? #f
  3256. #:make-flags
  3257. (list (string-append "-Dhtsjdk_lib_dir="
  3258. (assoc-ref %build-inputs "java-htsjdk")
  3259. "/share/java/htsjdk/")
  3260. "-Dhtsjdk-classes=dist/tmp"
  3261. (string-append "-Dhtsjdk-version="
  3262. ,(package-version java-htsjdk)))
  3263. #:jdk ,icedtea-8
  3264. #:phases
  3265. (modify-phases %standard-phases
  3266. ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
  3267. (delete 'generate-jar-indices)
  3268. (add-after 'unpack 'use-our-htsjdk
  3269. (lambda* (#:key inputs #:allow-other-keys)
  3270. (substitute* "build.xml"
  3271. (("\\$\\{htsjdk\\}/lib")
  3272. (string-append (assoc-ref inputs "java-htsjdk")
  3273. "/share/java/htsjdk/")))
  3274. #t))
  3275. (add-after 'unpack 'make-test-target-independent
  3276. (lambda* (#:key inputs #:allow-other-keys)
  3277. (substitute* "build.xml"
  3278. (("name=\"test\" depends=\"compile, ")
  3279. "name=\"test\" depends=\""))
  3280. #t))
  3281. (replace 'install (install-jars "dist")))))
  3282. (inputs
  3283. `(("java-htsjdk" ,java-htsjdk)
  3284. ("java-guava" ,java-guava)))
  3285. (native-inputs
  3286. `(("java-testng" ,java-testng)))
  3287. (home-page "http://broadinstitute.github.io/picard/")
  3288. (synopsis "Tools for manipulating high-throughput sequencing data and formats")
  3289. (description "Picard is a set of Java command line tools for manipulating
  3290. high-throughput sequencing (HTS) data and formats. Picard is implemented
  3291. using the HTSJDK Java library to support accessing file formats that are
  3292. commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
  3293. VCF.")
  3294. (license license:expat)))
  3295. ;; This is needed for dropseq-tools
  3296. (define-public java-picard-2.10.3
  3297. (package
  3298. (name "java-picard")
  3299. (version "2.10.3")
  3300. (source (origin
  3301. (method git-fetch)
  3302. (uri (git-reference
  3303. (url "https://github.com/broadinstitute/picard.git")
  3304. (commit version)))
  3305. (file-name (string-append "java-picard-" version "-checkout"))
  3306. (sha256
  3307. (base32
  3308. "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
  3309. (build-system ant-build-system)
  3310. (arguments
  3311. `(#:jar-name "picard.jar"
  3312. ;; Tests require jacoco:coverage.
  3313. #:tests? #f
  3314. #:jdk ,icedtea-8
  3315. #:main-class "picard.cmdline.PicardCommandLine"
  3316. #:modules ((guix build ant-build-system)
  3317. (guix build utils)
  3318. (guix build java-utils)
  3319. (sxml simple)
  3320. (sxml transform)
  3321. (sxml xpath))
  3322. #:phases
  3323. (modify-phases %standard-phases
  3324. ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
  3325. (delete 'generate-jar-indices)
  3326. (add-after 'unpack 'remove-useless-build.xml
  3327. (lambda _ (delete-file "build.xml") #t))
  3328. ;; This is necessary to ensure that htsjdk is found when using
  3329. ;; picard.jar as an executable.
  3330. (add-before 'build 'edit-classpath-in-manifest
  3331. (lambda* (#:key inputs #:allow-other-keys)
  3332. (chmod "build.xml" #o664)
  3333. (call-with-output-file "build.xml.new"
  3334. (lambda (port)
  3335. (sxml->xml
  3336. (pre-post-order
  3337. (with-input-from-file "build.xml"
  3338. (lambda _ (xml->sxml #:trim-whitespace? #t)))
  3339. `((target . ,(lambda (tag . kids)
  3340. (let ((name ((sxpath '(name *text*))
  3341. (car kids)))
  3342. ;; FIXME: We're breaking the line
  3343. ;; early with a dummy path to
  3344. ;; ensure that the store reference
  3345. ;; isn't broken apart and can still
  3346. ;; be found by the reference
  3347. ;; scanner.
  3348. (msg (format #f
  3349. "\
  3350. Class-Path: /~a \
  3351. ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
  3352. ;; maximum line length is 70
  3353. (string-tabulate (const #\b) 57)
  3354. (assoc-ref inputs "java-htsjdk"))))
  3355. (if (member "manifest" name)
  3356. `(,tag ,@kids
  3357. (replaceregexp
  3358. (@ (file "${manifest.file}")
  3359. (match "\\r\\n\\r\\n")
  3360. (replace "${line.separator}")))
  3361. (echo
  3362. (@ (message ,msg)
  3363. (file "${manifest.file}")
  3364. (append "true"))))
  3365. `(,tag ,@kids)))))
  3366. (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
  3367. (*text* . ,(lambda (_ txt) txt))))
  3368. port)))
  3369. (rename-file "build.xml.new" "build.xml")
  3370. #t)))))
  3371. (propagated-inputs
  3372. `(("java-htsjdk" ,java-htsjdk-2.10.1)))
  3373. (native-inputs
  3374. `(("java-testng" ,java-testng)
  3375. ("java-guava" ,java-guava)))
  3376. (home-page "http://broadinstitute.github.io/picard/")
  3377. (synopsis "Tools for manipulating high-throughput sequencing data and formats")
  3378. (description "Picard is a set of Java command line tools for manipulating
  3379. high-throughput sequencing (HTS) data and formats. Picard is implemented
  3380. using the HTSJDK Java library to support accessing file formats that are
  3381. commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
  3382. VCF.")
  3383. (license license:expat)))
  3384. ;; This is the last version of Picard to provide net.sf.samtools
  3385. (define-public java-picard-1.113
  3386. (package (inherit java-picard)
  3387. (name "java-picard")
  3388. (version "1.113")
  3389. (source (origin
  3390. (method git-fetch)
  3391. (uri (git-reference
  3392. (url "https://github.com/broadinstitute/picard.git")
  3393. (commit version)))
  3394. (file-name (string-append "java-picard-" version "-checkout"))
  3395. (sha256
  3396. (base32
  3397. "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
  3398. (modules '((guix build utils)))
  3399. (snippet
  3400. '(begin
  3401. ;; Delete pre-built binaries.
  3402. (delete-file-recursively "lib")
  3403. (mkdir-p "lib")
  3404. #t))))
  3405. (build-system ant-build-system)
  3406. (arguments
  3407. `(#:build-target "picard-jar"
  3408. #:test-target "test"
  3409. ;; FIXME: the class path at test time is wrong.
  3410. ;; [testng] Error: A JNI error has occurred, please check your installation and try again
  3411. ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
  3412. #:tests? #f
  3413. #:jdk ,icedtea-8
  3414. ;; This is only used for tests.
  3415. #:make-flags
  3416. (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
  3417. #:phases
  3418. (modify-phases %standard-phases
  3419. ;; FIXME: This phase fails.
  3420. (delete 'generate-jar-indices)
  3421. ;; Do not use bundled ant bzip2.
  3422. (add-after 'unpack 'use-ant-bzip
  3423. (lambda* (#:key inputs #:allow-other-keys)
  3424. (substitute* "build.xml"
  3425. (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
  3426. (string-append (assoc-ref inputs "ant")
  3427. "/lib/ant.jar")))
  3428. #t))
  3429. (add-after 'unpack 'make-test-target-independent
  3430. (lambda* (#:key inputs #:allow-other-keys)
  3431. (substitute* "build.xml"
  3432. (("name=\"test\" depends=\"compile, ")
  3433. "name=\"test\" depends=\"compile-tests, ")
  3434. (("name=\"compile\" depends=\"compile-src, compile-tests\"")
  3435. "name=\"compile\" depends=\"compile-src\""))
  3436. #t))
  3437. (add-after 'unpack 'fix-deflater-path
  3438. (lambda* (#:key outputs #:allow-other-keys)
  3439. (substitute* "src/java/net/sf/samtools/Defaults.java"
  3440. (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
  3441. (string-append "getStringProperty(\"intel_deflater_so_path\", \""
  3442. (assoc-ref outputs "out")
  3443. "/lib/jni/libIntelDeflater.so"
  3444. "\")")))
  3445. #t))
  3446. ;; Build the deflater library, because we've previously deleted the
  3447. ;; pre-built one. This can only be built with access to the JDK
  3448. ;; sources.
  3449. (add-after 'build 'build-jni
  3450. (lambda* (#:key inputs #:allow-other-keys)
  3451. (mkdir-p "lib/jni")
  3452. (mkdir-p "jdk-src")
  3453. (invoke "tar" "--strip-components=1" "-C" "jdk-src"
  3454. "-xf" (assoc-ref inputs "jdk-src"))
  3455. (invoke "javah" "-jni"
  3456. "-classpath" "classes"
  3457. "-d" "lib/"
  3458. "net.sf.samtools.util.zip.IntelDeflater")
  3459. (with-directory-excursion "src/c/inteldeflater"
  3460. (invoke "gcc" "-I../../../lib" "-I."
  3461. (string-append "-I" (assoc-ref inputs "jdk")
  3462. "/include/linux")
  3463. "-I../../../jdk-src/src/share/native/common/"
  3464. "-I../../../jdk-src/src/solaris/native/common/"
  3465. "-c" "-O3" "-fPIC" "IntelDeflater.c")
  3466. (invoke "gcc" "-shared"
  3467. "-o" "../../../lib/jni/libIntelDeflater.so"
  3468. "IntelDeflater.o" "-lz" "-lstdc++"))
  3469. #t))
  3470. ;; We can only build everything else after building the JNI library.
  3471. (add-after 'build-jni 'build-rest
  3472. (lambda* (#:key make-flags #:allow-other-keys)
  3473. (apply invoke `("ant" "all" ,@make-flags))
  3474. #t))
  3475. (add-before 'build 'set-JAVA6_HOME
  3476. (lambda _
  3477. (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
  3478. #t))
  3479. (replace 'install (install-jars "dist"))
  3480. (add-after 'install 'install-jni-lib
  3481. (lambda* (#:key outputs #:allow-other-keys)
  3482. (let ((jni (string-append (assoc-ref outputs "out")
  3483. "/lib/jni")))
  3484. (mkdir-p jni)
  3485. (install-file "lib/jni/libIntelDeflater.so" jni)
  3486. #t))))))
  3487. (inputs
  3488. `(("java-snappy-1" ,java-snappy-1)
  3489. ("java-commons-jexl-2" ,java-commons-jexl-2)
  3490. ("java-cofoja" ,java-cofoja)
  3491. ("ant" ,ant) ; for bzip2 support at runtime
  3492. ("zlib" ,zlib)))
  3493. (native-inputs
  3494. `(("ant-apache-bcel" ,ant-apache-bcel)
  3495. ("ant-junit" ,ant-junit)
  3496. ("java-testng" ,java-testng)
  3497. ("java-commons-bcel" ,java-commons-bcel)
  3498. ("java-jcommander" ,java-jcommander)
  3499. ("jdk" ,icedtea-8 "jdk")
  3500. ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
  3501. (define-public fastqc
  3502. (package
  3503. (name "fastqc")
  3504. (version "0.11.5")
  3505. (source
  3506. (origin
  3507. (method url-fetch)
  3508. (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
  3509. "projects/fastqc/fastqc_v"
  3510. version "_source.zip"))
  3511. (sha256
  3512. (base32
  3513. "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
  3514. (build-system ant-build-system)
  3515. (arguments
  3516. `(#:tests? #f ; there are no tests
  3517. #:build-target "build"
  3518. #:phases
  3519. (modify-phases %standard-phases
  3520. (add-after 'unpack 'fix-dependencies
  3521. (lambda* (#:key inputs #:allow-other-keys)
  3522. (substitute* "build.xml"
  3523. (("jbzip2-0.9.jar")
  3524. (string-append (assoc-ref inputs "java-jbzip2")
  3525. "/share/java/jbzip2.jar"))
  3526. (("sam-1.103.jar")
  3527. (string-append (assoc-ref inputs "java-picard-1.113")
  3528. "/share/java/sam-1.112.jar"))
  3529. (("cisd-jhdf5.jar")
  3530. (string-append (assoc-ref inputs "java-cisd-jhdf5")
  3531. "/share/java/sis-jhdf5.jar")))
  3532. #t))
  3533. ;; There is no installation target
  3534. (replace 'install
  3535. (lambda* (#:key inputs outputs #:allow-other-keys)
  3536. (let* ((out (assoc-ref outputs "out"))
  3537. (bin (string-append out "/bin"))
  3538. (share (string-append out "/share/fastqc/"))
  3539. (exe (string-append share "/fastqc")))
  3540. (for-each mkdir-p (list bin share))
  3541. (copy-recursively "bin" share)
  3542. (substitute* exe
  3543. (("my \\$java_bin = 'java';")
  3544. (string-append "my $java_bin = '"
  3545. (assoc-ref inputs "java")
  3546. "/bin/java';")))
  3547. (chmod exe #o555)
  3548. (symlink exe (string-append bin "/fastqc"))
  3549. #t))))))
  3550. (inputs
  3551. `(("java" ,icedtea)
  3552. ("perl" ,perl) ; needed for the wrapper script
  3553. ("java-cisd-jhdf5" ,java-cisd-jhdf5)
  3554. ("java-picard-1.113" ,java-picard-1.113)
  3555. ("java-jbzip2" ,java-jbzip2)))
  3556. (native-inputs
  3557. `(("unzip" ,unzip)))
  3558. (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
  3559. (synopsis "Quality control tool for high throughput sequence data")
  3560. (description
  3561. "FastQC aims to provide a simple way to do some quality control
  3562. checks on raw sequence data coming from high throughput sequencing
  3563. pipelines. It provides a modular set of analyses which you can use to
  3564. give a quick impression of whether your data has any problems of which
  3565. you should be aware before doing any further analysis.
  3566. The main functions of FastQC are:
  3567. @itemize
  3568. @item Import of data from BAM, SAM or FastQ files (any variant);
  3569. @item Providing a quick overview to tell you in which areas there may
  3570. be problems;
  3571. @item Summary graphs and tables to quickly assess your data;
  3572. @item Export of results to an HTML based permanent report;
  3573. @item Offline operation to allow automated generation of reports
  3574. without running the interactive application.
  3575. @end itemize\n")
  3576. (license license:gpl3+)))
  3577. (define-public fastp
  3578. (package
  3579. (name "fastp")
  3580. (version "0.14.1")
  3581. (source
  3582. (origin
  3583. (method git-fetch)
  3584. (uri (git-reference
  3585. (url "https://github.com/OpenGene/fastp.git")
  3586. (commit (string-append "v" version))))
  3587. (file-name (git-file-name name version))
  3588. (sha256
  3589. (base32
  3590. "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
  3591. (build-system gnu-build-system)
  3592. (arguments
  3593. `(#:tests? #f ; there are none
  3594. #:make-flags
  3595. (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
  3596. #:phases
  3597. (modify-phases %standard-phases
  3598. (delete 'configure)
  3599. (add-before 'install 'create-target-dir
  3600. (lambda* (#:key outputs #:allow-other-keys)
  3601. (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
  3602. #t)))))
  3603. (inputs
  3604. `(("zlib" ,zlib)))
  3605. (home-page "https://github.com/OpenGene/fastp/")
  3606. (synopsis "All-in-one FastQ preprocessor")
  3607. (description
  3608. "Fastp is a tool designed to provide fast all-in-one preprocessing for
  3609. FastQ files. This tool has multi-threading support to afford high
  3610. performance.")
  3611. (license license:expat)))
  3612. (define-public htslib
  3613. (package
  3614. (name "htslib")
  3615. (version "1.9")
  3616. (source (origin
  3617. (method url-fetch)
  3618. (uri (string-append
  3619. "https://github.com/samtools/htslib/releases/download/"
  3620. version "/htslib-" version ".tar.bz2"))
  3621. (sha256
  3622. (base32
  3623. "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
  3624. (build-system gnu-build-system)
  3625. (inputs
  3626. `(("openssl" ,openssl)
  3627. ("curl" ,curl)
  3628. ("zlib" ,zlib)))
  3629. (native-inputs
  3630. `(("perl" ,perl)))
  3631. (home-page "http://www.htslib.org")
  3632. (synopsis "C library for reading/writing high-throughput sequencing data")
  3633. (description
  3634. "HTSlib is a C library for reading/writing high-throughput sequencing
  3635. data. It also provides the @command{bgzip}, @command{htsfile}, and
  3636. @command{tabix} utilities.")
  3637. ;; Files under cram/ are released under the modified BSD license;
  3638. ;; the rest is released under the Expat license
  3639. (license (list license:expat license:bsd-3))))
  3640. ;; This package should be removed once no packages rely upon it.
  3641. (define htslib-1.3
  3642. (package
  3643. (inherit htslib)
  3644. (version "1.3.1")
  3645. (source (origin
  3646. (method url-fetch)
  3647. (uri (string-append
  3648. "https://github.com/samtools/htslib/releases/download/"
  3649. version "/htslib-" version ".tar.bz2"))
  3650. (sha256
  3651. (base32
  3652. "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
  3653. (define-public idr
  3654. (package
  3655. (name "idr")
  3656. (version "2.0.3")
  3657. (source (origin
  3658. (method git-fetch)
  3659. (uri (git-reference
  3660. (url "https://github.com/nboley/idr.git")
  3661. (commit version)))
  3662. (file-name (git-file-name name version))
  3663. (sha256
  3664. (base32
  3665. "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
  3666. ;; Delete generated C code.
  3667. (snippet
  3668. '(begin (delete-file "idr/inv_cdf.c") #t))))
  3669. (build-system python-build-system)
  3670. ;; There is only one test ("test_inv_cdf.py") and it tests features that
  3671. ;; are no longer part of this package. It also asserts False, which
  3672. ;; causes the tests to always fail.
  3673. (arguments `(#:tests? #f))
  3674. (propagated-inputs
  3675. `(("python-scipy" ,python-scipy)
  3676. ("python-sympy" ,python-sympy)
  3677. ("python-numpy" ,python-numpy)
  3678. ("python-matplotlib" ,python-matplotlib)))
  3679. (native-inputs
  3680. `(("python-cython" ,python-cython)))
  3681. (home-page "https://github.com/nboley/idr")
  3682. (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
  3683. (description
  3684. "The IDR (Irreproducible Discovery Rate) framework is a unified approach
  3685. to measure the reproducibility of findings identified from replicate
  3686. experiments and provide highly stable thresholds based on reproducibility.")
  3687. (license license:gpl2+)))
  3688. (define-public jellyfish
  3689. (package
  3690. (name "jellyfish")
  3691. (version "2.2.10")
  3692. (source (origin
  3693. (method url-fetch)
  3694. (uri (string-append "https://github.com/gmarcais/Jellyfish/"
  3695. "releases/download/v" version
  3696. "/jellyfish-" version ".tar.gz"))
  3697. (sha256
  3698. (base32
  3699. "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
  3700. (build-system gnu-build-system)
  3701. (outputs '("out" ;for library
  3702. "ruby" ;for Ruby bindings
  3703. "python")) ;for Python bindings
  3704. (arguments
  3705. `(#:configure-flags
  3706. (list (string-append "--enable-ruby-binding="
  3707. (assoc-ref %outputs "ruby"))
  3708. (string-append "--enable-python-binding="
  3709. (assoc-ref %outputs "python")))
  3710. #:phases
  3711. (modify-phases %standard-phases
  3712. (add-before 'check 'set-SHELL-variable
  3713. (lambda _
  3714. ;; generator_manager.hpp either uses /bin/sh or $SHELL
  3715. ;; to run tests.
  3716. (setenv "SHELL" (which "bash"))
  3717. #t)))))
  3718. (native-inputs
  3719. `(("bc" ,bc)
  3720. ("time" ,time)
  3721. ("ruby" ,ruby)
  3722. ("python" ,python-2)
  3723. ("pkg-config" ,pkg-config)))
  3724. (inputs
  3725. `(("htslib" ,htslib)))
  3726. (synopsis "Tool for fast counting of k-mers in DNA")
  3727. (description
  3728. "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
  3729. DNA. A k-mer is a substring of length k, and counting the occurrences of all
  3730. such substrings is a central step in many analyses of DNA sequence. Jellyfish
  3731. is a command-line program that reads FASTA and multi-FASTA files containing
  3732. DNA sequences. It outputs its k-mer counts in a binary format, which can be
  3733. translated into a human-readable text format using the @code{jellyfish dump}
  3734. command, or queried for specific k-mers with @code{jellyfish query}.")
  3735. (home-page "http://www.genome.umd.edu/jellyfish.html")
  3736. ;; JELLYFISH seems to be 64-bit only.
  3737. (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
  3738. ;; The combined work is published under the GPLv3 or later. Individual
  3739. ;; files such as lib/jsoncpp.cpp are released under the Expat license.
  3740. (license (list license:gpl3+ license:expat))))
  3741. (define-public khmer
  3742. (package
  3743. (name "khmer")
  3744. (version "2.1.2")
  3745. (source
  3746. (origin
  3747. (method git-fetch)
  3748. (uri (git-reference
  3749. (url "https://github.com/dib-lab/khmer.git")
  3750. (commit (string-append "v" version))))
  3751. (file-name (git-file-name name version))
  3752. (sha256
  3753. (base32
  3754. "02x38d9jw2r58y8dmnj4hffy9wxv1yc1jwbvdbhby9dxndv94r9m"))
  3755. (patches (search-patches "khmer-use-libraries.patch"))
  3756. (modules '((guix build utils)))
  3757. (snippet
  3758. '(begin
  3759. ;; Delete bundled libraries. We do not replace the bundled seqan
  3760. ;; as it is a modified subset of the old version 1.4.1.
  3761. ;;
  3762. ;; We do not replace the bundled MurmurHash as the canonical
  3763. ;; repository for this code 'SMHasher' is unsuitable for providing
  3764. ;; a library. See
  3765. ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
  3766. (delete-file-recursively "third-party/zlib")
  3767. (delete-file-recursively "third-party/bzip2")
  3768. #t))))
  3769. (build-system python-build-system)
  3770. (arguments
  3771. `(#:phases
  3772. (modify-phases %standard-phases
  3773. (add-after 'unpack 'set-cc
  3774. (lambda _ (setenv "CC" "gcc") #t))
  3775. ;; FIXME: This fails with "permission denied".
  3776. (delete 'reset-gzip-timestamps))))
  3777. (native-inputs
  3778. `(("python-cython" ,python-cython)
  3779. ("python-pytest" ,python-pytest)
  3780. ("python-pytest-runner" ,python-pytest-runner)))
  3781. (inputs
  3782. `(("zlib" ,zlib)
  3783. ("bzip2" ,bzip2)
  3784. ("python-screed" ,python-screed)
  3785. ("python-bz2file" ,python-bz2file)))
  3786. (home-page "https://khmer.readthedocs.org/")
  3787. (synopsis "K-mer counting, filtering and graph traversal library")
  3788. (description "The khmer software is a set of command-line tools for
  3789. working with DNA shotgun sequencing data from genomes, transcriptomes,
  3790. metagenomes and single cells. Khmer can make de novo assemblies faster, and
  3791. sometimes better. Khmer can also identify and fix problems with shotgun
  3792. data.")
  3793. ;; When building on i686, armhf and mips64el, we get the following error:
  3794. ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
  3795. (supported-systems '("x86_64-linux" "aarch64-linux"))
  3796. (license license:bsd-3)))
  3797. (define-public kaiju
  3798. (package
  3799. (name "kaiju")
  3800. (version "1.6.3")
  3801. (source (origin
  3802. (method git-fetch)
  3803. (uri (git-reference
  3804. (url "https://github.com/bioinformatics-centre/kaiju")
  3805. (commit (string-append "v" version))))
  3806. (file-name (git-file-name name version))
  3807. (sha256
  3808. (base32
  3809. "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
  3810. (build-system gnu-build-system)
  3811. (arguments
  3812. `(#:tests? #f ; There are no tests.
  3813. #:phases
  3814. (modify-phases %standard-phases
  3815. (delete 'configure)
  3816. (add-before 'build 'move-to-src-dir
  3817. (lambda _ (chdir "src") #t))
  3818. (replace 'install
  3819. (lambda* (#:key inputs outputs #:allow-other-keys)
  3820. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  3821. (mkdir-p bin)
  3822. (chdir "..")
  3823. (copy-recursively "bin" bin))
  3824. #t)))))
  3825. (inputs
  3826. `(("perl" ,perl)
  3827. ("zlib" ,zlib)))
  3828. (home-page "http://kaiju.binf.ku.dk/")
  3829. (synopsis "Fast and sensitive taxonomic classification for metagenomics")
  3830. (description "Kaiju is a program for sensitive taxonomic classification
  3831. of high-throughput sequencing reads from metagenomic whole genome sequencing
  3832. experiments.")
  3833. (license license:gpl3+)))
  3834. (define-public macs
  3835. (package
  3836. (name "macs")
  3837. (version "2.1.1.20160309")
  3838. (source (origin
  3839. (method url-fetch)
  3840. (uri (pypi-uri "MACS2" version))
  3841. (sha256
  3842. (base32
  3843. "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
  3844. (build-system python-build-system)
  3845. (arguments
  3846. `(#:python ,python-2 ; only compatible with Python 2.7
  3847. #:tests? #f)) ; no test target
  3848. (inputs
  3849. `(("python-numpy" ,python2-numpy)))
  3850. (home-page "https://github.com/taoliu/MACS/")
  3851. (synopsis "Model based analysis for ChIP-Seq data")
  3852. (description
  3853. "MACS is an implementation of a ChIP-Seq analysis algorithm for
  3854. identifying transcript factor binding sites named Model-based Analysis of
  3855. ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
  3856. the significance of enriched ChIP regions and it improves the spatial
  3857. resolution of binding sites through combining the information of both
  3858. sequencing tag position and orientation.")
  3859. (license license:bsd-3)))
  3860. (define-public mafft
  3861. (package
  3862. (name "mafft")
  3863. (version "7.394")
  3864. (source (origin
  3865. (method url-fetch)
  3866. (uri (string-append
  3867. "https://mafft.cbrc.jp/alignment/software/mafft-" version
  3868. "-without-extensions-src.tgz"))
  3869. (file-name (string-append name "-" version ".tgz"))
  3870. (sha256
  3871. (base32
  3872. "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
  3873. (build-system gnu-build-system)
  3874. (arguments
  3875. `(#:tests? #f ; no automated tests, though there are tests in the read me
  3876. #:make-flags (let ((out (assoc-ref %outputs "out")))
  3877. (list (string-append "PREFIX=" out)
  3878. (string-append "BINDIR="
  3879. (string-append out "/bin"))))
  3880. #:phases
  3881. (modify-phases %standard-phases
  3882. (add-after 'unpack 'enter-dir
  3883. (lambda _ (chdir "core") #t))
  3884. (add-after 'enter-dir 'patch-makefile
  3885. (lambda _
  3886. ;; on advice from the MAFFT authors, there is no need to
  3887. ;; distribute mafft-profile, mafft-distance, or
  3888. ;; mafft-homologs.rb as they are too "specialised".
  3889. (substitute* "Makefile"
  3890. ;; remove mafft-homologs.rb from SCRIPTS
  3891. (("^SCRIPTS = mafft mafft-homologs.rb")
  3892. "SCRIPTS = mafft")
  3893. ;; remove mafft-homologs from MANPAGES
  3894. (("^MANPAGES = mafft.1 mafft-homologs.1")
  3895. "MANPAGES = mafft.1")
  3896. ;; remove mafft-distance from PROGS
  3897. (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
  3898. "PROGS = dvtditr dndfast7 dndblast sextet5")
  3899. ;; remove mafft-profile from PROGS
  3900. (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
  3901. "splittbfast disttbfast tbfast f2cl mccaskillwrap")
  3902. (("^rm -f mafft-profile mafft-profile.exe") "#")
  3903. (("^rm -f mafft-distance mafft-distance.exe") ")#")
  3904. ;; do not install MAN pages in libexec folder
  3905. (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
  3906. \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
  3907. #t))
  3908. (add-after 'enter-dir 'patch-paths
  3909. (lambda* (#:key inputs #:allow-other-keys)
  3910. (substitute* '("pairash.c"
  3911. "mafft.tmpl")
  3912. (("perl") (which "perl"))
  3913. (("([\"`| ])awk" _ prefix)
  3914. (string-append prefix (which "awk")))
  3915. (("grep") (which "grep")))
  3916. #t))
  3917. (delete 'configure)
  3918. (add-after 'install 'wrap-programs
  3919. (lambda* (#:key outputs #:allow-other-keys)
  3920. (let* ((out (assoc-ref outputs "out"))
  3921. (bin (string-append out "/bin"))
  3922. (path (string-append
  3923. (assoc-ref %build-inputs "coreutils") "/bin:")))
  3924. (for-each (lambda (file)
  3925. (wrap-program file
  3926. `("PATH" ":" prefix (,path))))
  3927. (find-files bin)))
  3928. #t)))))
  3929. (inputs
  3930. `(("perl" ,perl)
  3931. ("ruby" ,ruby)
  3932. ("gawk" ,gawk)
  3933. ("grep" ,grep)
  3934. ("coreutils" ,coreutils)))
  3935. (home-page "http://mafft.cbrc.jp/alignment/software/")
  3936. (synopsis "Multiple sequence alignment program")
  3937. (description
  3938. "MAFFT offers a range of multiple alignment methods for nucleotide and
  3939. protein sequences. For instance, it offers L-INS-i (accurate; for alignment
  3940. of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
  3941. sequences).")
  3942. (license (license:non-copyleft
  3943. "http://mafft.cbrc.jp/alignment/software/license.txt"
  3944. "BSD-3 with different formatting"))))
  3945. (define-public mash
  3946. (package
  3947. (name "mash")
  3948. (version "2.1")
  3949. (source (origin
  3950. (method git-fetch)
  3951. (uri (git-reference
  3952. (url "https://github.com/marbl/mash.git")
  3953. (commit (string-append "v" version))))
  3954. (file-name (git-file-name name version))
  3955. (sha256
  3956. (base32
  3957. "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
  3958. (modules '((guix build utils)))
  3959. (snippet
  3960. '(begin
  3961. ;; Delete bundled kseq.
  3962. ;; TODO: Also delete bundled murmurhash and open bloom filter.
  3963. (delete-file "src/mash/kseq.h")
  3964. #t))))
  3965. (build-system gnu-build-system)
  3966. (arguments
  3967. `(#:tests? #f ; No tests.
  3968. #:configure-flags
  3969. (list
  3970. (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
  3971. (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
  3972. #:make-flags (list "CC=gcc")
  3973. #:phases
  3974. (modify-phases %standard-phases
  3975. (add-after 'unpack 'fix-includes
  3976. (lambda _
  3977. (substitute* '("src/mash/Sketch.cpp"
  3978. "src/mash/CommandFind.cpp"
  3979. "src/mash/CommandScreen.cpp")
  3980. (("^#include \"kseq\\.h\"")
  3981. "#include \"htslib/kseq.h\""))
  3982. #t))
  3983. (add-after 'fix-includes 'use-c++14
  3984. (lambda _
  3985. ;; capnproto 0.7 requires c++14 to build
  3986. (substitute* "configure.ac"
  3987. (("c\\+\\+11") "c++14"))
  3988. (substitute* "Makefile.in"
  3989. (("c\\+\\+11") "c++14"))
  3990. #t)))))
  3991. (native-inputs
  3992. `(("autoconf" ,autoconf)
  3993. ;; Capnproto and htslib are statically embedded in the final
  3994. ;; application. Therefore we also list their licenses, below.
  3995. ("capnproto" ,capnproto)
  3996. ("htslib" ,htslib)))
  3997. (inputs
  3998. `(("gsl" ,gsl)
  3999. ("zlib" ,zlib)))
  4000. (supported-systems '("x86_64-linux"))
  4001. (home-page "https://mash.readthedocs.io")
  4002. (synopsis "Fast genome and metagenome distance estimation using MinHash")
  4003. (description "Mash is a fast sequence distance estimator that uses the
  4004. MinHash algorithm and is designed to work with genomes and metagenomes in the
  4005. form of assemblies or reads.")
  4006. (license (list license:bsd-3 ; Mash
  4007. license:expat ; HTSlib and capnproto
  4008. license:public-domain ; MurmurHash 3
  4009. license:cpl1.0)))) ; Open Bloom Filter
  4010. (define-public metabat
  4011. (package
  4012. (name "metabat")
  4013. (version "2.12.1")
  4014. (source
  4015. (origin
  4016. (method git-fetch)
  4017. (uri (git-reference
  4018. (url "https://bitbucket.org/berkeleylab/metabat.git")
  4019. (commit (string-append "v" version))))
  4020. (file-name (git-file-name name version))
  4021. (sha256
  4022. (base32
  4023. "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
  4024. (patches (search-patches "metabat-fix-compilation.patch"))))
  4025. (build-system scons-build-system)
  4026. (arguments
  4027. `(#:scons ,scons-python2
  4028. #:scons-flags
  4029. (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
  4030. (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
  4031. #:tests? #f ;; Tests are run during the build phase.
  4032. #:phases
  4033. (modify-phases %standard-phases
  4034. (add-after 'unpack 'fix-includes
  4035. (lambda _
  4036. (substitute* "src/BamUtils.h"
  4037. (("^#include \"bam/bam\\.h\"")
  4038. "#include \"samtools/bam.h\"")
  4039. (("^#include \"bam/sam\\.h\"")
  4040. "#include \"samtools/sam.h\""))
  4041. (substitute* "src/KseqReader.h"
  4042. (("^#include \"bam/kseq\\.h\"")
  4043. "#include \"htslib/kseq.h\""))
  4044. #t))
  4045. (add-after 'unpack 'fix-scons
  4046. (lambda* (#:key inputs #:allow-other-keys)
  4047. (substitute* "SConstruct"
  4048. (("^htslib_dir += 'samtools'")
  4049. (string-append "htslib_dir = '"
  4050. (assoc-ref inputs "htslib")
  4051. "'"))
  4052. (("^samtools_dir = 'samtools'")
  4053. (string-append "samtools_dir = '"
  4054. (assoc-ref inputs "samtools")
  4055. "'"))
  4056. (("^findStaticOrShared\\('bam', hts_lib")
  4057. (string-append "findStaticOrShared('bam', '"
  4058. (assoc-ref inputs "samtools")
  4059. "/lib'"))
  4060. ;; Do not distribute README.
  4061. (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
  4062. #t)))))
  4063. (inputs
  4064. `(("zlib" ,zlib)
  4065. ("perl" ,perl)
  4066. ("samtools" ,samtools)
  4067. ("htslib" ,htslib)
  4068. ("boost" ,boost)))
  4069. (home-page "https://bitbucket.org/berkeleylab/metabat")
  4070. (synopsis
  4071. "Reconstruction of single genomes from complex microbial communities")
  4072. (description
  4073. "Grouping large genomic fragments assembled from shotgun metagenomic
  4074. sequences to deconvolute complex microbial communities, or metagenome binning,
  4075. enables the study of individual organisms and their interactions. MetaBAT is
  4076. an automated metagenome binning software, which integrates empirical
  4077. probabilistic distances of genome abundance and tetranucleotide frequency.")
  4078. ;; The source code contains inline assembly.
  4079. (supported-systems '("x86_64-linux" "i686-linux"))
  4080. (license (license:non-copyleft "file://license.txt"
  4081. "See license.txt in the distribution."))))
  4082. (define-public minced
  4083. (package
  4084. (name "minced")
  4085. (version "0.3.2")
  4086. (source (origin
  4087. (method git-fetch)
  4088. (uri (git-reference
  4089. (url "https://github.com/ctSkennerton/minced.git")
  4090. (commit version)))
  4091. (file-name (git-file-name name version))
  4092. (sha256
  4093. (base32
  4094. "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
  4095. (build-system gnu-build-system)
  4096. (arguments
  4097. `(#:test-target "test"
  4098. #:phases
  4099. (modify-phases %standard-phases
  4100. (delete 'configure)
  4101. (add-before 'check 'fix-test
  4102. (lambda _
  4103. ;; Fix test for latest version.
  4104. (substitute* "t/Aquifex_aeolicus_VF5.expected"
  4105. (("minced:0.1.6") "minced:0.2.0"))
  4106. #t))
  4107. (replace 'install ; No install target.
  4108. (lambda* (#:key inputs outputs #:allow-other-keys)
  4109. (let* ((out (assoc-ref outputs "out"))
  4110. (bin (string-append out "/bin"))
  4111. (wrapper (string-append bin "/minced")))
  4112. ;; Minced comes with a wrapper script that tries to figure out where
  4113. ;; it is located before running the JAR. Since these paths are known
  4114. ;; to us, we build our own wrapper to avoid coreutils dependency.
  4115. (install-file "minced.jar" bin)
  4116. (with-output-to-file wrapper
  4117. (lambda _
  4118. (display
  4119. (string-append
  4120. "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
  4121. (assoc-ref inputs "jre") "/bin/java -jar "
  4122. bin "/minced.jar \"$@\"\n"))))
  4123. (chmod wrapper #o555))
  4124. #t)))))
  4125. (native-inputs
  4126. `(("jdk" ,icedtea "jdk")))
  4127. (inputs
  4128. `(("bash" ,bash)
  4129. ("jre" ,icedtea "out")))
  4130. (home-page "https://github.com/ctSkennerton/minced")
  4131. (synopsis "Mining CRISPRs in Environmental Datasets")
  4132. (description
  4133. "MinCED is a program to find Clustered Regularly Interspaced Short
  4134. Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
  4135. unassembled metagenomic reads, but is mainly designed for full genomes and
  4136. assembled metagenomic sequence.")
  4137. (license license:gpl3+)))
  4138. (define-public miso
  4139. (package
  4140. (name "miso")
  4141. (version "0.5.4")
  4142. (source (origin
  4143. (method url-fetch)
  4144. (uri (pypi-uri "misopy" version))
  4145. (sha256
  4146. (base32
  4147. "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
  4148. (modules '((guix build utils)))
  4149. (snippet '(begin
  4150. (substitute* "setup.py"
  4151. ;; Use setuptools, or else the executables are not
  4152. ;; installed.
  4153. (("distutils.core") "setuptools")
  4154. ;; use "gcc" instead of "cc" for compilation
  4155. (("^defines")
  4156. "cc.set_executables(
  4157. compiler='gcc',
  4158. compiler_so='gcc',
  4159. linker_exe='gcc',
  4160. linker_so='gcc -shared'); defines"))
  4161. #t))))
  4162. (build-system python-build-system)
  4163. (arguments
  4164. `(#:python ,python-2 ; only Python 2 is supported
  4165. #:tests? #f)) ; no "test" target
  4166. (inputs
  4167. `(("samtools" ,samtools)
  4168. ("python-numpy" ,python2-numpy)
  4169. ("python-pysam" ,python2-pysam)
  4170. ("python-scipy" ,python2-scipy)
  4171. ("python-matplotlib" ,python2-matplotlib)))
  4172. (native-inputs
  4173. `(("python-mock" ,python2-mock) ;for tests
  4174. ("python-pytz" ,python2-pytz))) ;for tests
  4175. (home-page "http://genes.mit.edu/burgelab/miso/index.html")
  4176. (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
  4177. (description
  4178. "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
  4179. the expression level of alternatively spliced genes from RNA-Seq data, and
  4180. identifies differentially regulated isoforms or exons across samples. By
  4181. modeling the generative process by which reads are produced from isoforms in
  4182. RNA-Seq, the MISO model uses Bayesian inference to compute the probability
  4183. that a read originated from a particular isoform.")
  4184. (license license:gpl2)))
  4185. (define-public muscle
  4186. (package
  4187. (name "muscle")
  4188. (version "3.8.1551")
  4189. (source (origin
  4190. (method url-fetch/tarbomb)
  4191. (uri (string-append
  4192. "http://www.drive5.com/muscle/muscle_src_"
  4193. version ".tar.gz"))
  4194. (sha256
  4195. (base32
  4196. "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
  4197. (build-system gnu-build-system)
  4198. (arguments
  4199. `(#:make-flags (list "LDLIBS = -lm")
  4200. #:phases
  4201. (modify-phases %standard-phases
  4202. (delete 'configure)
  4203. (replace 'check
  4204. ;; There are no tests, so just test if it runs.
  4205. (lambda _ (invoke "./muscle" "-version") #t))
  4206. (replace 'install
  4207. (lambda* (#:key outputs #:allow-other-keys)
  4208. (let* ((out (assoc-ref outputs "out"))
  4209. (bin (string-append out "/bin")))
  4210. (install-file "muscle" bin)
  4211. #t))))))
  4212. (home-page "http://www.drive5.com/muscle")
  4213. (synopsis "Multiple sequence alignment program")
  4214. (description
  4215. "MUSCLE aims to be a fast and accurate multiple sequence alignment
  4216. program for nucleotide and protein sequences.")
  4217. ;; License information found in 'muscle -h' and usage.cpp.
  4218. (license license:public-domain)))
  4219. (define-public newick-utils
  4220. ;; There are no recent releases so we package from git.
  4221. (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
  4222. (package
  4223. (name "newick-utils")
  4224. (version (string-append "1.6-1." (string-take commit 8)))
  4225. (source (origin
  4226. (method git-fetch)
  4227. (uri (git-reference
  4228. (url "https://github.com/tjunier/newick_utils.git")
  4229. (commit commit)))
  4230. (file-name (string-append name "-" version "-checkout"))
  4231. (sha256
  4232. (base32
  4233. "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
  4234. (build-system gnu-build-system)
  4235. (inputs
  4236. ;; XXX: TODO: Enable Lua and Guile bindings.
  4237. ;; https://github.com/tjunier/newick_utils/issues/13
  4238. `(("libxml2" ,libxml2)
  4239. ("flex" ,flex)
  4240. ("bison" ,bison)))
  4241. (native-inputs
  4242. `(("autoconf" ,autoconf)
  4243. ("automake" ,automake)
  4244. ("libtool" ,libtool)))
  4245. (synopsis "Programs for working with newick format phylogenetic trees")
  4246. (description
  4247. "Newick-utils is a suite of utilities for processing phylogenetic trees
  4248. in Newick format. Functions include re-rooting, extracting subtrees,
  4249. trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
  4250. (home-page "https://github.com/tjunier/newick_utils")
  4251. (license license:bsd-3))))
  4252. (define-public orfm
  4253. (package
  4254. (name "orfm")
  4255. (version "0.7.1")
  4256. (source (origin
  4257. (method url-fetch)
  4258. (uri (string-append
  4259. "https://github.com/wwood/OrfM/releases/download/v"
  4260. version "/orfm-" version ".tar.gz"))
  4261. (sha256
  4262. (base32
  4263. "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
  4264. (build-system gnu-build-system)
  4265. (inputs `(("zlib" ,zlib)))
  4266. (native-inputs
  4267. `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
  4268. ("ruby-rspec" ,ruby-rspec)
  4269. ("ruby" ,ruby)))
  4270. (synopsis "Simple and not slow open reading frame (ORF) caller")
  4271. (description
  4272. "An ORF caller finds stretches of DNA that, when translated, are not
  4273. interrupted by stop codons. OrfM finds and prints these ORFs.")
  4274. (home-page "https://github.com/wwood/OrfM")
  4275. (license license:lgpl3+)))
  4276. (define-public python2-pbcore
  4277. (package
  4278. (name "python2-pbcore")
  4279. (version "1.2.10")
  4280. (source (origin
  4281. (method url-fetch)
  4282. (uri (pypi-uri "pbcore" version))
  4283. (sha256
  4284. (base32
  4285. "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
  4286. (build-system python-build-system)
  4287. (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
  4288. (propagated-inputs
  4289. `(("python-cython" ,python2-cython)
  4290. ("python-numpy" ,python2-numpy)
  4291. ("python-pysam" ,python2-pysam)
  4292. ("python-h5py" ,python2-h5py)))
  4293. (native-inputs
  4294. `(("python-nose" ,python2-nose)
  4295. ("python-sphinx" ,python2-sphinx)
  4296. ("python-pyxb" ,python2-pyxb)))
  4297. (home-page "http://pacificbiosciences.github.io/pbcore/")
  4298. (synopsis "Library for reading and writing PacBio data files")
  4299. (description
  4300. "The pbcore package provides Python APIs for interacting with PacBio data
  4301. files and writing bioinformatics applications.")
  4302. (license license:bsd-3)))
  4303. (define-public python2-warpedlmm
  4304. (package
  4305. (name "python2-warpedlmm")
  4306. (version "0.21")
  4307. (source
  4308. (origin
  4309. (method url-fetch)
  4310. (uri (pypi-uri "WarpedLMM" version ".zip"))
  4311. (sha256
  4312. (base32
  4313. "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
  4314. (build-system python-build-system)
  4315. (arguments
  4316. `(#:python ,python-2)) ; requires Python 2.7
  4317. (propagated-inputs
  4318. `(("python-scipy" ,python2-scipy)
  4319. ("python-numpy" ,python2-numpy)
  4320. ("python-matplotlib" ,python2-matplotlib)
  4321. ("python-fastlmm" ,python2-fastlmm)
  4322. ("python-pandas" ,python2-pandas)
  4323. ("python-pysnptools" ,python2-pysnptools)))
  4324. (native-inputs
  4325. `(("python-mock" ,python2-mock)
  4326. ("python-nose" ,python2-nose)
  4327. ("unzip" ,unzip)))
  4328. (home-page "https://github.com/PMBio/warpedLMM")
  4329. (synopsis "Implementation of warped linear mixed models")
  4330. (description
  4331. "WarpedLMM is a Python implementation of the warped linear mixed model,
  4332. which automatically learns an optimal warping function (or transformation) for
  4333. the phenotype as it models the data.")
  4334. (license license:asl2.0)))
  4335. (define-public pbtranscript-tofu
  4336. (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
  4337. (package
  4338. (name "pbtranscript-tofu")
  4339. (version (string-append "2.2.3." (string-take commit 7)))
  4340. (source (origin
  4341. (method git-fetch)
  4342. (uri (git-reference
  4343. (url "https://github.com/PacificBiosciences/cDNA_primer.git")
  4344. (commit commit)))
  4345. (file-name (string-append name "-" version "-checkout"))
  4346. (sha256
  4347. (base32
  4348. "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
  4349. (modules '((guix build utils)))
  4350. (snippet
  4351. '(begin
  4352. ;; remove bundled Cython sources
  4353. (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
  4354. #t))))
  4355. (build-system python-build-system)
  4356. (arguments
  4357. `(#:python ,python-2
  4358. ;; FIXME: Tests fail with "No such file or directory:
  4359. ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
  4360. #:tests? #f
  4361. #:phases
  4362. (modify-phases %standard-phases
  4363. (add-after 'unpack 'enter-directory
  4364. (lambda _
  4365. (chdir "pbtranscript-tofu/pbtranscript/")
  4366. #t))
  4367. ;; With setuptools version 18.0 and later this setup.py hack causes
  4368. ;; a build error, so we disable it.
  4369. (add-after 'enter-directory 'patch-setuppy
  4370. (lambda _
  4371. (substitute* "setup.py"
  4372. (("if 'setuptools.extension' in sys.modules:")
  4373. "if False:"))
  4374. #t)))))
  4375. (inputs
  4376. `(("python-numpy" ,python2-numpy)
  4377. ("python-bx-python" ,python2-bx-python)
  4378. ("python-networkx" ,python2-networkx)
  4379. ("python-scipy" ,python2-scipy)
  4380. ("python-pbcore" ,python2-pbcore)
  4381. ("python-h5py" ,python2-h5py)))
  4382. (native-inputs
  4383. `(("python-cython" ,python2-cython)
  4384. ("python-nose" ,python2-nose)))
  4385. (home-page "https://github.com/PacificBiosciences/cDNA_primer")
  4386. (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
  4387. (description
  4388. "pbtranscript-tofu contains scripts to analyze transcriptome data
  4389. generated using the PacBio Iso-Seq protocol.")
  4390. (license license:bsd-3))))
  4391. (define-public prank
  4392. (package
  4393. (name "prank")
  4394. (version "150803")
  4395. (source (origin
  4396. (method url-fetch)
  4397. (uri (string-append
  4398. "http://wasabiapp.org/download/prank/prank.source."
  4399. version ".tgz"))
  4400. (sha256
  4401. (base32
  4402. "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
  4403. (build-system gnu-build-system)
  4404. (arguments
  4405. `(#:phases
  4406. (modify-phases %standard-phases
  4407. (add-after 'unpack 'enter-src-dir
  4408. (lambda _
  4409. (chdir "src")
  4410. #t))
  4411. (add-after 'unpack 'remove-m64-flag
  4412. ;; Prank will build with the correct 'bit-ness' without this flag
  4413. ;; and this allows building on 32-bit machines.
  4414. (lambda _ (substitute* "src/Makefile"
  4415. (("-m64") ""))
  4416. #t))
  4417. (delete 'configure)
  4418. (replace 'install
  4419. (lambda* (#:key outputs #:allow-other-keys)
  4420. (let* ((out (assoc-ref outputs "out"))
  4421. (bin (string-append out "/bin"))
  4422. (man (string-append out "/share/man/man1"))
  4423. (path (string-append
  4424. (assoc-ref %build-inputs "mafft") "/bin:"
  4425. (assoc-ref %build-inputs "exonerate") "/bin:"
  4426. (assoc-ref %build-inputs "bppsuite") "/bin")))
  4427. (install-file "prank" bin)
  4428. (wrap-program (string-append bin "/prank")
  4429. `("PATH" ":" prefix (,path)))
  4430. (install-file "prank.1" man))
  4431. #t)))))
  4432. (inputs
  4433. `(("mafft" ,mafft)
  4434. ("exonerate" ,exonerate)
  4435. ("bppsuite" ,bppsuite)))
  4436. (home-page "http://wasabiapp.org/software/prank/")
  4437. (synopsis "Probabilistic multiple sequence alignment program")
  4438. (description
  4439. "PRANK is a probabilistic multiple sequence alignment program for DNA,
  4440. codon and amino-acid sequences. It is based on a novel algorithm that treats
  4441. insertions correctly and avoids over-estimation of the number of deletion
  4442. events. In addition, PRANK borrows ideas from maximum likelihood methods used
  4443. in phylogenetics and correctly takes into account the evolutionary distances
  4444. between sequences. Lastly, PRANK allows for defining a potential structure
  4445. for sequences to be aligned and then, simultaneously with the alignment,
  4446. predicts the locations of structural units in the sequences.")
  4447. (license license:gpl2+)))
  4448. (define-public proteinortho
  4449. (package
  4450. (name "proteinortho")
  4451. (version "5.16b")
  4452. (source
  4453. (origin
  4454. (method url-fetch)
  4455. (uri
  4456. (string-append
  4457. "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
  4458. version "_src.tar.gz"))
  4459. (sha256
  4460. (base32
  4461. "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
  4462. (build-system gnu-build-system)
  4463. (arguments
  4464. `(#:test-target "test"
  4465. #:phases
  4466. (modify-phases %standard-phases
  4467. (replace 'configure
  4468. ;; There is no configure script, so we modify the Makefile directly.
  4469. (lambda* (#:key outputs #:allow-other-keys)
  4470. (substitute* "Makefile"
  4471. (("INSTALLDIR=.*")
  4472. (string-append
  4473. "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
  4474. #t))
  4475. (add-before 'install 'make-install-directory
  4476. ;; The install directory is not created during 'make install'.
  4477. (lambda* (#:key outputs #:allow-other-keys)
  4478. (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
  4479. #t))
  4480. (add-after 'install 'wrap-programs
  4481. (lambda* (#:key inputs outputs #:allow-other-keys)
  4482. (let* ((path (getenv "PATH"))
  4483. (out (assoc-ref outputs "out"))
  4484. (binary (string-append out "/bin/proteinortho5.pl")))
  4485. (wrap-program binary `("PATH" ":" prefix (,path))))
  4486. #t)))))
  4487. (inputs
  4488. `(("perl" ,perl)
  4489. ("python" ,python-2)
  4490. ("blast+" ,blast+)))
  4491. (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
  4492. (synopsis "Detect orthologous genes across species")
  4493. (description
  4494. "Proteinortho is a tool to detect orthologous genes across different
  4495. species. For doing so, it compares similarities of given gene sequences and
  4496. clusters them to find significant groups. The algorithm was designed to handle
  4497. large-scale data and can be applied to hundreds of species at once.")
  4498. (license license:gpl2+)))
  4499. (define-public pyicoteo
  4500. (package
  4501. (name "pyicoteo")
  4502. (version "2.0.7")
  4503. (source
  4504. (origin
  4505. (method git-fetch)
  4506. (uri (git-reference
  4507. (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
  4508. (commit (string-append "v" version))))
  4509. (file-name (git-file-name name version))
  4510. (sha256
  4511. (base32
  4512. "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
  4513. (build-system python-build-system)
  4514. (arguments
  4515. `(#:python ,python-2 ; does not work with Python 3
  4516. #:tests? #f)) ; there are no tests
  4517. (inputs
  4518. `(("python2-matplotlib" ,python2-matplotlib)))
  4519. (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
  4520. (synopsis "Analyze high-throughput genetic sequencing data")
  4521. (description
  4522. "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
  4523. sequencing data. It works with genomic coordinates. There are currently six
  4524. different command-line tools:
  4525. @enumerate
  4526. @item pyicoregion: for generating exploratory regions automatically;
  4527. @item pyicoenrich: for differential enrichment between two conditions;
  4528. @item pyicoclip: for calling CLIP-Seq peaks without a control;
  4529. @item pyicos: for genomic coordinates manipulation;
  4530. @item pyicoller: for peak calling on punctuated ChIP-Seq;
  4531. @item pyicount: to count how many reads from N experiment files overlap in a
  4532. region file;
  4533. @item pyicotrocol: to combine operations from pyicoteo.
  4534. @end enumerate\n")
  4535. (license license:gpl3+)))
  4536. (define-public prodigal
  4537. (package
  4538. (name "prodigal")
  4539. (version "2.6.3")
  4540. (source (origin
  4541. (method git-fetch)
  4542. (uri (git-reference
  4543. (url "https://github.com/hyattpd/Prodigal.git")
  4544. (commit (string-append "v" version))))
  4545. (file-name (git-file-name name version))
  4546. (sha256
  4547. (base32
  4548. "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
  4549. (build-system gnu-build-system)
  4550. (arguments
  4551. `(#:tests? #f ;no check target
  4552. #:make-flags (list (string-append "INSTALLDIR="
  4553. (assoc-ref %outputs "out")
  4554. "/bin"))
  4555. #:phases
  4556. (modify-phases %standard-phases
  4557. (delete 'configure))))
  4558. (home-page "http://prodigal.ornl.gov")
  4559. (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
  4560. (description
  4561. "Prodigal runs smoothly on finished genomes, draft genomes, and
  4562. metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
  4563. format. It runs quickly, in an unsupervised fashion, handles gaps, handles
  4564. partial genes, and identifies translation initiation sites.")
  4565. (license license:gpl3+)))
  4566. (define-public roary
  4567. (package
  4568. (name "roary")
  4569. (version "3.12.0")
  4570. (source
  4571. (origin
  4572. (method url-fetch)
  4573. (uri (string-append
  4574. "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
  4575. version ".tar.gz"))
  4576. (sha256
  4577. (base32
  4578. "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
  4579. (build-system perl-build-system)
  4580. (arguments
  4581. `(#:phases
  4582. (modify-phases %standard-phases
  4583. (delete 'configure)
  4584. (delete 'build)
  4585. (replace 'check
  4586. (lambda _
  4587. ;; The tests are not run by default, so we run each test file
  4588. ;; directly.
  4589. (setenv "PATH" (string-append (getcwd) "/bin" ":"
  4590. (getenv "PATH")))
  4591. (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
  4592. (getenv "PERL5LIB")))
  4593. (for-each (lambda (file)
  4594. (display file)(display "\n")
  4595. (invoke "perl" file))
  4596. (find-files "t" ".*\\.t$"))
  4597. #t))
  4598. (replace 'install
  4599. ;; There is no 'install' target in the Makefile.
  4600. (lambda* (#:key outputs #:allow-other-keys)
  4601. (let* ((out (assoc-ref outputs "out"))
  4602. (bin (string-append out "/bin"))
  4603. (perl (string-append out "/lib/perl5/site_perl"))
  4604. (roary-plots "contrib/roary_plots"))
  4605. (mkdir-p bin)
  4606. (mkdir-p perl)
  4607. (copy-recursively "bin" bin)
  4608. (copy-recursively "lib" perl)
  4609. #t)))
  4610. (add-after 'install 'wrap-programs
  4611. (lambda* (#:key inputs outputs #:allow-other-keys)
  4612. (let* ((out (assoc-ref outputs "out"))
  4613. (perl5lib (getenv "PERL5LIB"))
  4614. (path (getenv "PATH")))
  4615. (for-each (lambda (prog)
  4616. (let ((binary (string-append out "/" prog)))
  4617. (wrap-program binary
  4618. `("PERL5LIB" ":" prefix
  4619. (,(string-append perl5lib ":" out
  4620. "/lib/perl5/site_perl"))))
  4621. (wrap-program binary
  4622. `("PATH" ":" prefix
  4623. (,(string-append path ":" out "/bin"))))))
  4624. (find-files "bin" ".*[^R]$"))
  4625. (let ((file
  4626. (string-append out "/bin/roary-create_pan_genome_plots.R"))
  4627. (r-site-lib (getenv "R_LIBS_SITE"))
  4628. (coreutils-path
  4629. (string-append (assoc-ref inputs "coreutils") "/bin")))
  4630. (wrap-program file
  4631. `("R_LIBS_SITE" ":" prefix
  4632. (,(string-append r-site-lib ":" out "/site-library/"))))
  4633. (wrap-program file
  4634. `("PATH" ":" prefix
  4635. (,(string-append coreutils-path ":" out "/bin"))))))
  4636. #t)))))
  4637. (native-inputs
  4638. `(("perl-env-path" ,perl-env-path)
  4639. ("perl-test-files" ,perl-test-files)
  4640. ("perl-test-most" ,perl-test-most)
  4641. ("perl-test-output" ,perl-test-output)))
  4642. (inputs
  4643. `(("perl-array-utils" ,perl-array-utils)
  4644. ("bioperl" ,bioperl-minimal)
  4645. ("perl-digest-md5-file" ,perl-digest-md5-file)
  4646. ("perl-exception-class" ,perl-exception-class)
  4647. ("perl-file-find-rule" ,perl-file-find-rule)
  4648. ("perl-file-grep" ,perl-file-grep)
  4649. ("perl-file-slurper" ,perl-file-slurper)
  4650. ("perl-file-which" ,perl-file-which)
  4651. ("perl-graph" ,perl-graph)
  4652. ("perl-graph-readwrite" ,perl-graph-readwrite)
  4653. ("perl-log-log4perl" ,perl-log-log4perl)
  4654. ("perl-moose" ,perl-moose)
  4655. ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
  4656. ("perl-text-csv" ,perl-text-csv)
  4657. ("bedtools" ,bedtools)
  4658. ("cd-hit" ,cd-hit)
  4659. ("blast+" ,blast+)
  4660. ("mcl" ,mcl)
  4661. ("parallel" ,parallel)
  4662. ("prank" ,prank)
  4663. ("mafft" ,mafft)
  4664. ("fasttree" ,fasttree)
  4665. ("grep" ,grep)
  4666. ("sed" ,sed)
  4667. ("gawk" ,gawk)
  4668. ("r-minimal" ,r-minimal)
  4669. ("r-ggplot2" ,r-ggplot2)
  4670. ("coreutils" ,coreutils)))
  4671. (home-page "http://sanger-pathogens.github.io/Roary")
  4672. (synopsis "High speed stand-alone pan genome pipeline")
  4673. (description
  4674. "Roary is a high speed stand alone pan genome pipeline, which takes
  4675. annotated assemblies in GFF3 format (produced by the Prokka program) and
  4676. calculates the pan genome. Using a standard desktop PC, it can analyse
  4677. datasets with thousands of samples, without compromising the quality of the
  4678. results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
  4679. single processor. Roary is not intended for metagenomics or for comparing
  4680. extremely diverse sets of genomes.")
  4681. (license license:gpl3)))
  4682. (define-public raxml
  4683. (package
  4684. (name "raxml")
  4685. (version "8.2.12")
  4686. (source
  4687. (origin
  4688. (method git-fetch)
  4689. (uri (git-reference
  4690. (url "https://github.com/stamatak/standard-RAxML.git")
  4691. (commit (string-append "v" version))))
  4692. (file-name (git-file-name name version))
  4693. (sha256
  4694. (base32
  4695. "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
  4696. (build-system gnu-build-system)
  4697. (arguments
  4698. `(#:tests? #f ; There are no tests.
  4699. ;; Use 'standard' Makefile rather than SSE or AVX ones.
  4700. #:make-flags (list "-f" "Makefile.HYBRID.gcc")
  4701. #:phases
  4702. (modify-phases %standard-phases
  4703. (delete 'configure)
  4704. (replace 'install
  4705. (lambda* (#:key outputs #:allow-other-keys)
  4706. (let* ((out (assoc-ref outputs "out"))
  4707. (bin (string-append out "/bin"))
  4708. (executable "raxmlHPC-HYBRID"))
  4709. (install-file executable bin)
  4710. (symlink (string-append bin "/" executable) "raxml"))
  4711. #t)))))
  4712. (inputs
  4713. `(("openmpi" ,openmpi)))
  4714. (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
  4715. (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
  4716. (description
  4717. "RAxML is a tool for phylogenetic analysis and post-analysis of large
  4718. phylogenies.")
  4719. ;; The source includes x86 specific code
  4720. (supported-systems '("x86_64-linux" "i686-linux"))
  4721. (license license:gpl2+)))
  4722. (define-public rsem
  4723. (package
  4724. (name "rsem")
  4725. (version "1.3.1")
  4726. (source
  4727. (origin
  4728. (method git-fetch)
  4729. (uri (git-reference
  4730. (url "https://github.com/deweylab/RSEM.git")
  4731. (commit (string-append "v" version))))
  4732. (sha256
  4733. (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
  4734. (file-name (git-file-name name version))
  4735. (modules '((guix build utils)))
  4736. (snippet
  4737. '(begin
  4738. ;; remove bundled copy of boost and samtools
  4739. (delete-file-recursively "boost")
  4740. (delete-file-recursively "samtools-1.3")
  4741. #t))))
  4742. (build-system gnu-build-system)
  4743. (arguments
  4744. `(#:tests? #f ;no "check" target
  4745. #:make-flags
  4746. (list (string-append "BOOST="
  4747. (assoc-ref %build-inputs "boost")
  4748. "/include/")
  4749. (string-append "SAMHEADERS="
  4750. (assoc-ref %build-inputs "htslib")
  4751. "/include/htslib/sam.h")
  4752. (string-append "SAMLIBS="
  4753. (assoc-ref %build-inputs "htslib")
  4754. "/lib/libhts.a"))
  4755. #:phases
  4756. (modify-phases %standard-phases
  4757. ;; No "configure" script.
  4758. ;; Do not build bundled samtools library.
  4759. (replace 'configure
  4760. (lambda _
  4761. (substitute* "Makefile"
  4762. (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
  4763. (("^\\$\\(SAMLIBS\\).*") ""))
  4764. #t))
  4765. (replace 'install
  4766. (lambda* (#:key outputs #:allow-other-keys)
  4767. (let* ((out (string-append (assoc-ref outputs "out")))
  4768. (bin (string-append out "/bin/"))
  4769. (perl (string-append out "/lib/perl5/site_perl")))
  4770. (mkdir-p bin)
  4771. (mkdir-p perl)
  4772. (for-each (lambda (file)
  4773. (install-file file bin))
  4774. (find-files "." "rsem-.*"))
  4775. (install-file "rsem_perl_utils.pm" perl))
  4776. #t))
  4777. (add-after 'install 'wrap-program
  4778. (lambda* (#:key outputs #:allow-other-keys)
  4779. (let ((out (assoc-ref outputs "out")))
  4780. (for-each (lambda (prog)
  4781. (wrap-program (string-append out "/bin/" prog)
  4782. `("PERL5LIB" ":" prefix
  4783. (,(string-append out "/lib/perl5/site_perl")))))
  4784. '("rsem-calculate-expression"
  4785. "rsem-control-fdr"
  4786. "rsem-generate-data-matrix"
  4787. "rsem-generate-ngvector"
  4788. "rsem-plot-transcript-wiggles"
  4789. "rsem-prepare-reference"
  4790. "rsem-run-ebseq"
  4791. "rsem-run-prsem-testing-procedure")))
  4792. #t)))))
  4793. (inputs
  4794. `(("boost" ,boost)
  4795. ("r-minimal" ,r-minimal)
  4796. ("perl" ,perl)
  4797. ("htslib" ,htslib-1.3)
  4798. ("zlib" ,zlib)))
  4799. (home-page "http://deweylab.biostat.wisc.edu/rsem/")
  4800. (synopsis "Estimate gene expression levels from RNA-Seq data")
  4801. (description
  4802. "RSEM is a software package for estimating gene and isoform expression
  4803. levels from RNA-Seq data. The RSEM package provides a user-friendly
  4804. interface, supports threads for parallel computation of the EM algorithm,
  4805. single-end and paired-end read data, quality scores, variable-length reads and
  4806. RSPD estimation. In addition, it provides posterior mean and 95% credibility
  4807. interval estimates for expression levels. For visualization, it can generate
  4808. BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
  4809. (license license:gpl3+)))
  4810. (define-public rseqc
  4811. (package
  4812. (name "rseqc")
  4813. (version "2.6.1")
  4814. (source
  4815. (origin
  4816. (method url-fetch)
  4817. (uri
  4818. (string-append "mirror://sourceforge/rseqc/"
  4819. "RSeQC-" version ".tar.gz"))
  4820. (sha256
  4821. (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
  4822. (modules '((guix build utils)))
  4823. (snippet
  4824. '(begin
  4825. ;; remove bundled copy of pysam
  4826. (delete-file-recursively "lib/pysam")
  4827. (substitute* "setup.py"
  4828. ;; remove dependency on outdated "distribute" module
  4829. (("^from distribute_setup import use_setuptools") "")
  4830. (("^use_setuptools\\(\\)") "")
  4831. ;; do not use bundled copy of pysam
  4832. (("^have_pysam = False") "have_pysam = True"))
  4833. #t))))
  4834. (build-system python-build-system)
  4835. (arguments `(#:python ,python-2))
  4836. (inputs
  4837. `(("python-cython" ,python2-cython)
  4838. ("python-pysam" ,python2-pysam)
  4839. ("python-numpy" ,python2-numpy)
  4840. ("zlib" ,zlib)))
  4841. (native-inputs
  4842. `(("python-nose" ,python2-nose)))
  4843. (home-page "http://rseqc.sourceforge.net/")
  4844. (synopsis "RNA-seq quality control package")
  4845. (description
  4846. "RSeQC provides a number of modules that can comprehensively evaluate
  4847. high throughput sequence data, especially RNA-seq data. Some basic modules
  4848. inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
  4849. while RNA-seq specific modules evaluate sequencing saturation, mapped reads
  4850. distribution, coverage uniformity, strand specificity, etc.")
  4851. (license license:gpl3+)))
  4852. (define-public seek
  4853. ;; There are no release tarballs. According to the installation
  4854. ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
  4855. ;; stable release is identified by this changeset ID.
  4856. (let ((changeset "2329130")
  4857. (revision "1"))
  4858. (package
  4859. (name "seek")
  4860. (version (string-append "0-" revision "." changeset))
  4861. (source (origin
  4862. (method hg-fetch)
  4863. (uri (hg-reference
  4864. (url "https://bitbucket.org/libsleipnir/sleipnir")
  4865. (changeset changeset)))
  4866. (file-name (string-append name "-" version "-checkout"))
  4867. (sha256
  4868. (base32
  4869. "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
  4870. (build-system gnu-build-system)
  4871. (arguments
  4872. `(#:modules ((srfi srfi-1)
  4873. (guix build gnu-build-system)
  4874. (guix build utils))
  4875. #:phases
  4876. (let ((dirs '("SeekMiner"
  4877. "SeekEvaluator"
  4878. "SeekPrep"
  4879. "Distancer"
  4880. "Data2DB"
  4881. "PCL2Bin")))
  4882. (modify-phases %standard-phases
  4883. (replace 'bootstrap
  4884. (lambda _
  4885. (substitute* "gen_tools_am"
  4886. (("/usr/bin/env.*") (which "perl")))
  4887. (invoke "bash" "gen_auto")
  4888. #t))
  4889. (add-after 'build 'build-additional-tools
  4890. (lambda* (#:key make-flags #:allow-other-keys)
  4891. (for-each (lambda (dir)
  4892. (with-directory-excursion (string-append "tools/" dir)
  4893. (apply invoke "make" make-flags)))
  4894. dirs)
  4895. #t))
  4896. (add-after 'install 'install-additional-tools
  4897. (lambda* (#:key make-flags #:allow-other-keys)
  4898. (for-each (lambda (dir)
  4899. (with-directory-excursion (string-append "tools/" dir)
  4900. (apply invoke `("make" ,@make-flags "install"))))
  4901. dirs)
  4902. #t))))))
  4903. (inputs
  4904. `(("gsl" ,gsl)
  4905. ("boost" ,boost)
  4906. ("libsvm" ,libsvm)
  4907. ("readline" ,readline)
  4908. ("gengetopt" ,gengetopt)
  4909. ("log4cpp" ,log4cpp)))
  4910. (native-inputs
  4911. `(("autoconf" ,autoconf)
  4912. ("automake" ,automake)
  4913. ("perl" ,perl)))
  4914. (home-page "http://seek.princeton.edu")
  4915. (synopsis "Gene co-expression search engine")
  4916. (description
  4917. "SEEK is a computational gene co-expression search engine. SEEK provides
  4918. biologists with a way to navigate the massive human expression compendium that
  4919. now contains thousands of expression datasets. SEEK returns a robust ranking
  4920. of co-expressed genes in the biological area of interest defined by the user's
  4921. query genes. It also prioritizes thousands of expression datasets according
  4922. to the user's query of interest.")
  4923. (license license:cc-by3.0))))
  4924. (define-public samtools
  4925. (package
  4926. (name "samtools")
  4927. (version "1.9")
  4928. (source
  4929. (origin
  4930. (method url-fetch)
  4931. (uri
  4932. (string-append "mirror://sourceforge/samtools/samtools/"
  4933. version "/samtools-" version ".tar.bz2"))
  4934. (sha256
  4935. (base32
  4936. "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
  4937. (modules '((guix build utils)))
  4938. (snippet '(begin
  4939. ;; Delete bundled htslib.
  4940. (delete-file-recursively "htslib-1.9")
  4941. #t))))
  4942. (build-system gnu-build-system)
  4943. (arguments
  4944. `(#:modules ((ice-9 ftw)
  4945. (ice-9 regex)
  4946. (guix build gnu-build-system)
  4947. (guix build utils))
  4948. #:configure-flags (list "--with-ncurses")
  4949. #:phases
  4950. (modify-phases %standard-phases
  4951. (add-after 'unpack 'patch-tests
  4952. (lambda _
  4953. (substitute* "test/test.pl"
  4954. ;; The test script calls out to /bin/bash
  4955. (("/bin/bash") (which "bash")))
  4956. #t))
  4957. (add-after 'install 'install-library
  4958. (lambda* (#:key outputs #:allow-other-keys)
  4959. (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
  4960. (install-file "libbam.a" lib)
  4961. #t)))
  4962. (add-after 'install 'install-headers
  4963. (lambda* (#:key outputs #:allow-other-keys)
  4964. (let ((include (string-append (assoc-ref outputs "out")
  4965. "/include/samtools/")))
  4966. (for-each (lambda (file)
  4967. (install-file file include))
  4968. (scandir "." (lambda (name) (string-match "\\.h$" name))))
  4969. #t))))))
  4970. (native-inputs `(("pkg-config" ,pkg-config)))
  4971. (inputs
  4972. `(("htslib" ,htslib)
  4973. ("ncurses" ,ncurses)
  4974. ("perl" ,perl)
  4975. ("python" ,python)
  4976. ("zlib" ,zlib)))
  4977. (home-page "http://samtools.sourceforge.net")
  4978. (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
  4979. (description
  4980. "Samtools implements various utilities for post-processing nucleotide
  4981. sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
  4982. variant calling (in conjunction with bcftools), and a simple alignment
  4983. viewer.")
  4984. (license license:expat)))
  4985. (define-public samtools-0.1
  4986. ;; This is the most recent version of the 0.1 line of samtools. The input
  4987. ;; and output formats differ greatly from that used and produced by samtools
  4988. ;; 1.x and is still used in many bioinformatics pipelines.
  4989. (package (inherit samtools)
  4990. (version "0.1.19")
  4991. (source
  4992. (origin
  4993. (method url-fetch)
  4994. (uri
  4995. (string-append "mirror://sourceforge/samtools/samtools/"
  4996. version "/samtools-" version ".tar.bz2"))
  4997. (sha256
  4998. (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
  4999. (arguments
  5000. `(#:tests? #f ;no "check" target
  5001. #:make-flags
  5002. (list "LIBCURSES=-lncurses")
  5003. ,@(substitute-keyword-arguments (package-arguments samtools)
  5004. ((#:phases phases)
  5005. `(modify-phases ,phases
  5006. (replace 'install
  5007. (lambda* (#:key outputs #:allow-other-keys)
  5008. (let ((bin (string-append
  5009. (assoc-ref outputs "out") "/bin")))
  5010. (mkdir-p bin)
  5011. (install-file "samtools" bin)
  5012. #t)))
  5013. (delete 'patch-tests)
  5014. (delete 'configure))))))))
  5015. (define-public mosaik
  5016. (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
  5017. (package
  5018. (name "mosaik")
  5019. (version "2.2.30")
  5020. (source (origin
  5021. ;; There are no release tarballs nor tags.
  5022. (method git-fetch)
  5023. (uri (git-reference
  5024. (url "https://github.com/wanpinglee/MOSAIK.git")
  5025. (commit commit)))
  5026. (file-name (string-append name "-" version))
  5027. (sha256
  5028. (base32
  5029. "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
  5030. (build-system gnu-build-system)
  5031. (arguments
  5032. `(#:tests? #f ; no tests
  5033. #:make-flags (list "CC=gcc")
  5034. #:phases
  5035. (modify-phases %standard-phases
  5036. (replace 'configure
  5037. (lambda _ (chdir "src") #t))
  5038. (replace 'install
  5039. (lambda* (#:key outputs #:allow-other-keys)
  5040. (let ((bin (string-append (assoc-ref outputs "out")
  5041. "/bin")))
  5042. (mkdir-p bin)
  5043. (copy-recursively "../bin" bin)
  5044. #t))))))
  5045. (inputs
  5046. `(("perl" ,perl)
  5047. ("zlib:static" ,zlib "static")
  5048. ("zlib" ,zlib)))
  5049. (supported-systems '("x86_64-linux"))
  5050. (home-page "https://github.com/wanpinglee/MOSAIK")
  5051. (synopsis "Map nucleotide sequence reads to reference genomes")
  5052. (description
  5053. "MOSAIK is a program for mapping second and third-generation sequencing
  5054. reads to a reference genome. MOSAIK can align reads generated by all the
  5055. major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
  5056. Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
  5057. ;; MOSAIK is released under the GPLv2+ with the exception of third-party
  5058. ;; code released into the public domain:
  5059. ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
  5060. ;; 2. MD5 implementation - RSA Data Security, RFC 1321
  5061. (license (list license:gpl2+ license:public-domain)))))
  5062. (define-public ngs-sdk
  5063. (package
  5064. (name "ngs-sdk")
  5065. (version "2.9.3")
  5066. (source (origin
  5067. (method git-fetch)
  5068. (uri (git-reference
  5069. (url "https://github.com/ncbi/ngs.git")
  5070. (commit version)))
  5071. (file-name (git-file-name name version))
  5072. (sha256
  5073. (base32
  5074. "17c0v1nah3g3d2ib5bbi0vhma1ghd6vb9xycavqsh64lhp840rk3"))))
  5075. (build-system gnu-build-system)
  5076. (arguments
  5077. `(#:parallel-build? #f ; not supported
  5078. #:tests? #f ; no "check" target
  5079. #:phases
  5080. (modify-phases %standard-phases
  5081. (replace 'configure
  5082. (lambda* (#:key outputs #:allow-other-keys)
  5083. (let ((out (assoc-ref outputs "out")))
  5084. ;; Allow 'konfigure.perl' to find 'package.prl'.
  5085. (setenv "PERL5LIB"
  5086. (string-append ".:" (getenv "PERL5LIB")))
  5087. ;; The 'configure' script doesn't recognize things like
  5088. ;; '--enable-fast-install'.
  5089. (invoke "./configure"
  5090. (string-append "--build-prefix=" (getcwd) "/build")
  5091. (string-append "--prefix=" out))
  5092. #t)))
  5093. (add-after 'unpack 'enter-dir
  5094. (lambda _ (chdir "ngs-sdk") #t)))))
  5095. (native-inputs `(("perl" ,perl)))
  5096. ;; According to the test
  5097. ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
  5098. ;; in ngs-sdk/setup/konfigure.perl
  5099. (supported-systems '("i686-linux" "x86_64-linux"))
  5100. (home-page "https://github.com/ncbi/ngs")
  5101. (synopsis "API for accessing Next Generation Sequencing data")
  5102. (description
  5103. "NGS is a domain-specific API for accessing reads, alignments and pileups
  5104. produced from Next Generation Sequencing. The API itself is independent from
  5105. any particular back-end implementation, and supports use of multiple back-ends
  5106. simultaneously.")
  5107. (license license:public-domain)))
  5108. (define-public java-ngs
  5109. (package (inherit ngs-sdk)
  5110. (name "java-ngs")
  5111. (arguments
  5112. `(,@(substitute-keyword-arguments
  5113. `(#:modules ((guix build gnu-build-system)
  5114. (guix build utils)
  5115. (srfi srfi-1)
  5116. (srfi srfi-26))
  5117. ,@(package-arguments ngs-sdk))
  5118. ((#:phases phases)
  5119. `(modify-phases ,phases
  5120. (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
  5121. (inputs
  5122. `(("jdk" ,icedtea "jdk")
  5123. ("ngs-sdk" ,ngs-sdk)))
  5124. (synopsis "Java bindings for NGS SDK")))
  5125. (define-public ncbi-vdb
  5126. (package
  5127. (name "ncbi-vdb")
  5128. (version "2.9.3")
  5129. (source (origin
  5130. (method git-fetch)
  5131. (uri (git-reference
  5132. (url "https://github.com/ncbi/ncbi-vdb.git")
  5133. (commit version)))
  5134. (file-name (git-file-name name version))
  5135. (sha256
  5136. (base32
  5137. "1l4ny67nxwv1lagk9wwjbrgm7ln7adci6dnpc7k1yaln6shj0qpm"))))
  5138. (build-system gnu-build-system)
  5139. (arguments
  5140. `(#:parallel-build? #f ; not supported
  5141. #:tests? #f ; no "check" target
  5142. #:phases
  5143. (modify-phases %standard-phases
  5144. (add-after 'unpack 'make-files-writable
  5145. (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
  5146. (add-before 'configure 'set-perl-search-path
  5147. (lambda _
  5148. ;; Work around "dotless @INC" build failure.
  5149. (setenv "PERL5LIB"
  5150. (string-append (getcwd) "/setup:"
  5151. (getenv "PERL5LIB")))
  5152. #t))
  5153. (replace 'configure
  5154. (lambda* (#:key inputs outputs #:allow-other-keys)
  5155. (let ((out (assoc-ref outputs "out")))
  5156. ;; Override include path for libmagic
  5157. (substitute* "setup/package.prl"
  5158. (("name => 'magic', Include => '/usr/include'")
  5159. (string-append "name=> 'magic', Include => '"
  5160. (assoc-ref inputs "libmagic")
  5161. "/include" "'")))
  5162. ;; Install kdf5 library (needed by sra-tools)
  5163. (substitute* "build/Makefile.install"
  5164. (("LIBRARIES_TO_INSTALL =")
  5165. "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
  5166. (substitute* "build/Makefile.env"
  5167. (("CFLAGS =" prefix)
  5168. (string-append prefix "-msse2 ")))
  5169. ;; Override search path for ngs-java
  5170. (substitute* "setup/package.prl"
  5171. (("/usr/local/ngs/ngs-java")
  5172. (assoc-ref inputs "java-ngs")))
  5173. ;; The 'configure' script doesn't recognize things like
  5174. ;; '--enable-fast-install'.
  5175. (invoke "./configure"
  5176. (string-append "--build-prefix=" (getcwd) "/build")
  5177. (string-append "--prefix=" (assoc-ref outputs "out"))
  5178. (string-append "--debug")
  5179. (string-append "--with-xml2-prefix="
  5180. (assoc-ref inputs "libxml2"))
  5181. (string-append "--with-ngs-sdk-prefix="
  5182. (assoc-ref inputs "ngs-sdk"))
  5183. (string-append "--with-hdf5-prefix="
  5184. (assoc-ref inputs "hdf5")))
  5185. #t)))
  5186. (add-after 'install 'install-interfaces
  5187. (lambda* (#:key outputs #:allow-other-keys)
  5188. ;; Install interface libraries. On i686 the interface libraries
  5189. ;; are installed to "linux/gcc/i386", so we need to use the Linux
  5190. ;; architecture name ("i386") instead of the target system prefix
  5191. ;; ("i686").
  5192. (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
  5193. (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
  5194. ,(system->linux-architecture
  5195. (or (%current-target-system)
  5196. (%current-system)))
  5197. "/rel/ilib")
  5198. (string-append (assoc-ref outputs "out")
  5199. "/ilib"))
  5200. ;; Install interface headers
  5201. (copy-recursively "interfaces"
  5202. (string-append (assoc-ref outputs "out")
  5203. "/include"))
  5204. #t))
  5205. ;; These files are needed by sra-tools.
  5206. (add-after 'install 'install-configuration-files
  5207. (lambda* (#:key outputs #:allow-other-keys)
  5208. (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
  5209. (mkdir target)
  5210. (install-file "libs/kfg/default.kfg" target)
  5211. (install-file "libs/kfg/certs.kfg" target))
  5212. #t)))))
  5213. (inputs
  5214. `(("libxml2" ,libxml2)
  5215. ("ngs-sdk" ,ngs-sdk)
  5216. ("java-ngs" ,java-ngs)
  5217. ("libmagic" ,file)
  5218. ("hdf5" ,hdf5)))
  5219. (native-inputs `(("perl" ,perl)))
  5220. ;; NCBI-VDB requires SSE capability.
  5221. (supported-systems '("i686-linux" "x86_64-linux"))
  5222. (home-page "https://github.com/ncbi/ncbi-vdb")
  5223. (synopsis "Database engine for genetic information")
  5224. (description
  5225. "The NCBI-VDB library implements a highly compressed columnar data
  5226. warehousing engine that is most often used to store genetic information.
  5227. Databases are stored in a portable image within the file system, and can be
  5228. accessed/downloaded on demand across HTTP.")
  5229. (license license:public-domain)))
  5230. (define-public plink
  5231. (package
  5232. (name "plink")
  5233. (version "1.07")
  5234. (source
  5235. (origin
  5236. (method url-fetch)
  5237. (uri (string-append
  5238. "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
  5239. version "-src.zip"))
  5240. (sha256
  5241. (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
  5242. (patches (search-patches "plink-1.07-unclobber-i.patch"
  5243. "plink-endian-detection.patch"))))
  5244. (build-system gnu-build-system)
  5245. (arguments
  5246. '(#:tests? #f ;no "check" target
  5247. #:make-flags (list (string-append "LIB_LAPACK="
  5248. (assoc-ref %build-inputs "lapack")
  5249. "/lib/liblapack.so")
  5250. "WITH_LAPACK=1"
  5251. "FORCE_DYNAMIC=1"
  5252. ;; disable phoning home
  5253. "WITH_WEBCHECK=")
  5254. #:phases
  5255. (modify-phases %standard-phases
  5256. ;; no "configure" script
  5257. (delete 'configure)
  5258. (replace 'install
  5259. (lambda* (#:key outputs #:allow-other-keys)
  5260. (let ((bin (string-append (assoc-ref outputs "out")
  5261. "/bin/")))
  5262. (install-file "plink" bin)
  5263. #t))))))
  5264. (inputs
  5265. `(("zlib" ,zlib)
  5266. ("lapack" ,lapack)))
  5267. (native-inputs
  5268. `(("unzip" ,unzip)))
  5269. (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
  5270. (synopsis "Whole genome association analysis toolset")
  5271. (description
  5272. "PLINK is a whole genome association analysis toolset, designed to
  5273. perform a range of basic, large-scale analyses in a computationally efficient
  5274. manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
  5275. so there is no support for steps prior to this (e.g. study design and
  5276. planning, generating genotype or CNV calls from raw data). Through
  5277. integration with gPLINK and Haploview, there is some support for the
  5278. subsequent visualization, annotation and storage of results.")
  5279. ;; Code is released under GPLv2, except for fisher.h, which is under
  5280. ;; LGPLv2.1+
  5281. (license (list license:gpl2 license:lgpl2.1+))))
  5282. (define-public plink-ng
  5283. (package (inherit plink)
  5284. (name "plink-ng")
  5285. (version "1.90b4")
  5286. (source
  5287. (origin
  5288. (method git-fetch)
  5289. (uri (git-reference
  5290. (url "https://github.com/chrchang/plink-ng.git")
  5291. (commit (string-append "v" version))))
  5292. (file-name (git-file-name name version))
  5293. (sha256
  5294. (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
  5295. (build-system gnu-build-system)
  5296. (arguments
  5297. '(#:tests? #f ;no "check" target
  5298. #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
  5299. "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
  5300. "ZLIB=-lz"
  5301. "-f" "Makefile.std")
  5302. #:phases
  5303. (modify-phases %standard-phases
  5304. (add-after 'unpack 'chdir
  5305. (lambda _ (chdir "1.9") #t))
  5306. (delete 'configure) ; no "configure" script
  5307. (replace 'install
  5308. (lambda* (#:key outputs #:allow-other-keys)
  5309. (let ((bin (string-append (assoc-ref outputs "out")
  5310. "/bin/")))
  5311. (install-file "plink" bin)
  5312. #t))))))
  5313. (inputs
  5314. `(("zlib" ,zlib)
  5315. ("lapack" ,lapack)
  5316. ("openblas" ,openblas)))
  5317. (home-page "https://www.cog-genomics.org/plink/")
  5318. (license license:gpl3+)))
  5319. (define-public smithlab-cpp
  5320. (let ((revision "1")
  5321. (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
  5322. (package
  5323. (name "smithlab-cpp")
  5324. (version (string-append "0." revision "." (string-take commit 7)))
  5325. (source (origin
  5326. (method git-fetch)
  5327. (uri (git-reference
  5328. (url "https://github.com/smithlabcode/smithlab_cpp.git")
  5329. (commit commit)))
  5330. (file-name (string-append name "-" version "-checkout"))
  5331. (sha256
  5332. (base32
  5333. "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
  5334. (build-system gnu-build-system)
  5335. (arguments
  5336. `(#:modules ((guix build gnu-build-system)
  5337. (guix build utils)
  5338. (srfi srfi-26))
  5339. #:tests? #f ;no "check" target
  5340. #:phases
  5341. (modify-phases %standard-phases
  5342. (add-after 'unpack 'use-samtools-headers
  5343. (lambda _
  5344. (substitute* '("SAM.cpp"
  5345. "SAM.hpp")
  5346. (("sam.h") "samtools/sam.h"))
  5347. #t))
  5348. (replace 'install
  5349. (lambda* (#:key outputs #:allow-other-keys)
  5350. (let* ((out (assoc-ref outputs "out"))
  5351. (lib (string-append out "/lib"))
  5352. (include (string-append out "/include/smithlab-cpp")))
  5353. (mkdir-p lib)
  5354. (mkdir-p include)
  5355. (for-each (cut install-file <> lib)
  5356. (find-files "." "\\.o$"))
  5357. (for-each (cut install-file <> include)
  5358. (find-files "." "\\.hpp$")))
  5359. #t))
  5360. (delete 'configure))))
  5361. (inputs
  5362. `(("samtools" ,samtools-0.1)
  5363. ("zlib" ,zlib)))
  5364. (home-page "https://github.com/smithlabcode/smithlab_cpp")
  5365. (synopsis "C++ helper library for functions used in Smith lab projects")
  5366. (description
  5367. "Smithlab CPP is a C++ library that includes functions used in many of
  5368. the Smith lab bioinformatics projects, such as a wrapper around Samtools data
  5369. structures, classes for genomic regions, mapped sequencing reads, etc.")
  5370. (license license:gpl3+))))
  5371. (define-public preseq
  5372. (package
  5373. (name "preseq")
  5374. (version "2.0.3")
  5375. (source (origin
  5376. (method url-fetch)
  5377. (uri (string-append "https://github.com/smithlabcode/preseq/"
  5378. "releases/download/v" version
  5379. "/preseq_v" version ".tar.bz2"))
  5380. (sha256
  5381. (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
  5382. (modules '((guix build utils)))
  5383. (snippet '(begin
  5384. ;; Remove bundled samtools.
  5385. (delete-file-recursively "samtools")
  5386. #t))))
  5387. (build-system gnu-build-system)
  5388. (arguments
  5389. `(#:tests? #f ;no "check" target
  5390. #:phases
  5391. (modify-phases %standard-phases
  5392. (delete 'configure))
  5393. #:make-flags
  5394. (list (string-append "PREFIX="
  5395. (assoc-ref %outputs "out"))
  5396. (string-append "LIBBAM="
  5397. (assoc-ref %build-inputs "samtools")
  5398. "/lib/libbam.a")
  5399. (string-append "SMITHLAB_CPP="
  5400. (assoc-ref %build-inputs "smithlab-cpp")
  5401. "/lib")
  5402. "PROGS=preseq"
  5403. "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
  5404. (inputs
  5405. `(("gsl" ,gsl)
  5406. ("samtools" ,samtools-0.1)
  5407. ("smithlab-cpp" ,smithlab-cpp)
  5408. ("zlib" ,zlib)))
  5409. (home-page "http://smithlabresearch.org/software/preseq/")
  5410. (synopsis "Program for analyzing library complexity")
  5411. (description
  5412. "The preseq package is aimed at predicting and estimating the complexity
  5413. of a genomic sequencing library, equivalent to predicting and estimating the
  5414. number of redundant reads from a given sequencing depth and how many will be
  5415. expected from additional sequencing using an initial sequencing experiment.
  5416. The estimates can then be used to examine the utility of further sequencing,
  5417. optimize the sequencing depth, or to screen multiple libraries to avoid low
  5418. complexity samples.")
  5419. (license license:gpl3+)))
  5420. (define-public python-screed
  5421. (package
  5422. (name "python-screed")
  5423. (version "1.0")
  5424. (source
  5425. (origin
  5426. (method url-fetch)
  5427. (uri (pypi-uri "screed" version))
  5428. (sha256
  5429. (base32
  5430. "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
  5431. (build-system python-build-system)
  5432. (arguments
  5433. '(#:phases
  5434. (modify-phases %standard-phases
  5435. ;; Tests must be run after installation, as the "screed" command does
  5436. ;; not exist right after building.
  5437. (delete 'check)
  5438. (add-after 'install 'check
  5439. (lambda* (#:key inputs outputs #:allow-other-keys)
  5440. (let ((out (assoc-ref outputs "out")))
  5441. (setenv "PYTHONPATH"
  5442. (string-append out "/lib/python"
  5443. (string-take (string-take-right
  5444. (assoc-ref inputs "python")
  5445. 5) 3)
  5446. "/site-packages:"
  5447. (getenv "PYTHONPATH")))
  5448. (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
  5449. (invoke "python" "setup.py" "test")
  5450. #t)))))
  5451. (native-inputs
  5452. `(("python-pytest" ,python-pytest)
  5453. ("python-pytest-cov" ,python-pytest-cov)
  5454. ("python-pytest-runner" ,python-pytest-runner)))
  5455. (inputs
  5456. `(("python-bz2file" ,python-bz2file)))
  5457. (home-page "https://github.com/dib-lab/screed/")
  5458. (synopsis "Short read sequence database utilities")
  5459. (description "Screed parses FASTA and FASTQ files and generates databases.
  5460. Values such as sequence name, sequence description, sequence quality and the
  5461. sequence itself can be retrieved from these databases.")
  5462. (license license:bsd-3)))
  5463. (define-public python2-screed
  5464. (package-with-python2 python-screed))
  5465. (define-public sra-tools
  5466. (package
  5467. (name "sra-tools")
  5468. (version "2.9.3")
  5469. (source
  5470. (origin
  5471. (method git-fetch)
  5472. (uri (git-reference
  5473. (url "https://github.com/ncbi/sra-tools.git")
  5474. (commit version)))
  5475. (file-name (git-file-name name version))
  5476. (sha256
  5477. (base32
  5478. "0663gcdxkziwsmlznjxysb00621rllpbz6jwsfifq7z3dj3lwm8b"))))
  5479. (build-system gnu-build-system)
  5480. (arguments
  5481. `(#:parallel-build? #f ; not supported
  5482. #:tests? #f ; no "check" target
  5483. #:make-flags
  5484. (list (string-append "DEFAULT_CRT="
  5485. (assoc-ref %build-inputs "ncbi-vdb")
  5486. "/kfg/certs.kfg")
  5487. (string-append "DEFAULT_KFG="
  5488. (assoc-ref %build-inputs "ncbi-vdb")
  5489. "/kfg/default.kfg")
  5490. (string-append "VDB_LIBDIR="
  5491. (assoc-ref %build-inputs "ncbi-vdb")
  5492. ,(if (string-prefix? "x86_64"
  5493. (or (%current-target-system)
  5494. (%current-system)))
  5495. "/lib64"
  5496. "/lib32")))
  5497. #:phases
  5498. (modify-phases %standard-phases
  5499. (add-before 'configure 'set-perl-search-path
  5500. (lambda _
  5501. ;; Work around "dotless @INC" build failure.
  5502. (setenv "PERL5LIB"
  5503. (string-append (getcwd) "/setup:"
  5504. (getenv "PERL5LIB")))
  5505. #t))
  5506. (replace 'configure
  5507. (lambda* (#:key inputs outputs #:allow-other-keys)
  5508. ;; The build system expects a directory containing the sources and
  5509. ;; raw build output of ncbi-vdb, including files that are not
  5510. ;; installed. Since we are building against an installed version of
  5511. ;; ncbi-vdb, the following modifications are needed.
  5512. (substitute* "setup/konfigure.perl"
  5513. ;; Make the configure script look for the "ilib" directory of
  5514. ;; "ncbi-vdb" without first checking for the existence of a
  5515. ;; matching library in its "lib" directory.
  5516. (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
  5517. "my $f = File::Spec->catdir($ilibdir, $ilib);")
  5518. ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
  5519. (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
  5520. "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
  5521. ;; Dynamic linking
  5522. (substitute* "tools/copycat/Makefile"
  5523. (("smagic-static") "lmagic"))
  5524. ;; The 'configure' script doesn't recognize things like
  5525. ;; '--enable-fast-install'.
  5526. (invoke "./configure"
  5527. (string-append "--build-prefix=" (getcwd) "/build")
  5528. (string-append "--prefix=" (assoc-ref outputs "out"))
  5529. (string-append "--debug")
  5530. (string-append "--with-fuse-prefix="
  5531. (assoc-ref inputs "fuse"))
  5532. (string-append "--with-magic-prefix="
  5533. (assoc-ref inputs "libmagic"))
  5534. ;; TODO: building with libxml2 fails with linker errors
  5535. ;; (string-append "--with-xml2-prefix="
  5536. ;; (assoc-ref inputs "libxml2"))
  5537. (string-append "--with-ncbi-vdb-sources="
  5538. (assoc-ref inputs "ncbi-vdb"))
  5539. (string-append "--with-ncbi-vdb-build="
  5540. (assoc-ref inputs "ncbi-vdb"))
  5541. (string-append "--with-ngs-sdk-prefix="
  5542. (assoc-ref inputs "ngs-sdk"))
  5543. (string-append "--with-hdf5-prefix="
  5544. (assoc-ref inputs "hdf5")))
  5545. #t)))))
  5546. (native-inputs `(("perl" ,perl)))
  5547. (inputs
  5548. `(("ngs-sdk" ,ngs-sdk)
  5549. ("ncbi-vdb" ,ncbi-vdb)
  5550. ("libmagic" ,file)
  5551. ("fuse" ,fuse)
  5552. ("hdf5" ,hdf5)
  5553. ("zlib" ,zlib)))
  5554. (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
  5555. (synopsis "Tools and libraries for reading and writing sequencing data")
  5556. (description
  5557. "The SRA Toolkit from NCBI is a collection of tools and libraries for
  5558. reading of sequencing files from the Sequence Read Archive (SRA) database and
  5559. writing files into the .sra format.")
  5560. (license license:public-domain)))
  5561. (define-public seqan
  5562. (package
  5563. (name "seqan")
  5564. (version "2.4.0")
  5565. (source (origin
  5566. (method url-fetch)
  5567. (uri (string-append "https://github.com/seqan/seqan/releases/"
  5568. "download/seqan-v" version
  5569. "/seqan-library-" version ".tar.xz"))
  5570. (sha256
  5571. (base32
  5572. "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
  5573. ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
  5574. ;; makes sense to split the outputs.
  5575. (outputs '("out" "doc"))
  5576. (build-system trivial-build-system)
  5577. (arguments
  5578. `(#:modules ((guix build utils))
  5579. #:builder
  5580. (begin
  5581. (use-modules (guix build utils))
  5582. (let ((tar (assoc-ref %build-inputs "tar"))
  5583. (xz (assoc-ref %build-inputs "xz"))
  5584. (out (assoc-ref %outputs "out"))
  5585. (doc (assoc-ref %outputs "doc")))
  5586. (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
  5587. (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
  5588. (chdir (string-append "seqan-library-" ,version))
  5589. (copy-recursively "include" (string-append out "/include"))
  5590. (copy-recursively "share" (string-append doc "/share"))
  5591. #t))))
  5592. (native-inputs
  5593. `(("source" ,source)
  5594. ("tar" ,tar)
  5595. ("xz" ,xz)))
  5596. (home-page "http://www.seqan.de")
  5597. (synopsis "Library for nucleotide sequence analysis")
  5598. (description
  5599. "SeqAn is a C++ library of efficient algorithms and data structures for
  5600. the analysis of sequences with the focus on biological data. It contains
  5601. algorithms and data structures for string representation and their
  5602. manipulation, online and indexed string search, efficient I/O of
  5603. bioinformatics file formats, sequence alignment, and more.")
  5604. (license license:bsd-3)))
  5605. (define-public seqan-1
  5606. (package (inherit seqan)
  5607. (name "seqan")
  5608. (version "1.4.2")
  5609. (source (origin
  5610. (method url-fetch)
  5611. (uri (string-append "http://packages.seqan.de/seqan-library/"
  5612. "seqan-library-" version ".tar.bz2"))
  5613. (sha256
  5614. (base32
  5615. "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
  5616. ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
  5617. ;; makes sense to split the outputs.
  5618. (outputs '("out" "doc"))
  5619. (build-system trivial-build-system)
  5620. (arguments
  5621. `(#:modules ((guix build utils))
  5622. #:builder
  5623. (begin
  5624. (use-modules (guix build utils))
  5625. (let ((tar (assoc-ref %build-inputs "tar"))
  5626. (bzip (assoc-ref %build-inputs "bzip2"))
  5627. (out (assoc-ref %outputs "out"))
  5628. (doc (assoc-ref %outputs "doc")))
  5629. (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
  5630. (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
  5631. (chdir (string-append "seqan-library-" ,version))
  5632. (copy-recursively "include" (string-append out "/include"))
  5633. (copy-recursively "share" (string-append doc "/share"))
  5634. #t))))
  5635. (native-inputs
  5636. `(("source" ,source)
  5637. ("tar" ,tar)
  5638. ("bzip2" ,bzip2)))))
  5639. (define-public seqmagick
  5640. (package
  5641. (name "seqmagick")
  5642. (version "0.7.0")
  5643. (source
  5644. (origin
  5645. (method url-fetch)
  5646. (uri (pypi-uri "seqmagick" version))
  5647. (sha256
  5648. (base32
  5649. "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
  5650. (build-system python-build-system)
  5651. (inputs
  5652. `(("python-biopython" ,python-biopython)))
  5653. (native-inputs
  5654. `(("python-nose" ,python-nose)))
  5655. (home-page "https://github.com/fhcrc/seqmagick")
  5656. (synopsis "Tools for converting and modifying sequence files")
  5657. (description
  5658. "Bioinformaticians often have to convert sequence files between formats
  5659. and do little manipulations on them, and it's not worth writing scripts for
  5660. that. Seqmagick is a utility to expose the file format conversion in
  5661. BioPython in a convenient way. Instead of having a big mess of scripts, there
  5662. is one that takes arguments.")
  5663. (license license:gpl3)))
  5664. (define-public seqtk
  5665. (package
  5666. (name "seqtk")
  5667. (version "1.3")
  5668. (source (origin
  5669. (method git-fetch)
  5670. (uri (git-reference
  5671. (url "https://github.com/lh3/seqtk.git")
  5672. (commit (string-append "v" version))))
  5673. (file-name (git-file-name name version))
  5674. (sha256
  5675. (base32
  5676. "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
  5677. (build-system gnu-build-system)
  5678. (arguments
  5679. `(#:phases
  5680. (modify-phases %standard-phases
  5681. (delete 'configure)
  5682. (replace 'check
  5683. ;; There are no tests, so we just run a sanity check.
  5684. (lambda _ (invoke "./seqtk" "seq") #t))
  5685. (replace 'install
  5686. (lambda* (#:key outputs #:allow-other-keys)
  5687. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  5688. (install-file "seqtk" bin)
  5689. #t))))))
  5690. (inputs
  5691. `(("zlib" ,zlib)))
  5692. (home-page "https://github.com/lh3/seqtk")
  5693. (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
  5694. (description
  5695. "Seqtk is a fast and lightweight tool for processing sequences in the
  5696. FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
  5697. optionally compressed by gzip.")
  5698. (license license:expat)))
  5699. (define-public snap-aligner
  5700. (package
  5701. (name "snap-aligner")
  5702. (version "1.0beta.18")
  5703. (source (origin
  5704. (method git-fetch)
  5705. (uri (git-reference
  5706. (url "https://github.com/amplab/snap.git")
  5707. (commit (string-append "v" version))))
  5708. (file-name (git-file-name name version))
  5709. (sha256
  5710. (base32
  5711. "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
  5712. (build-system gnu-build-system)
  5713. (arguments
  5714. '(#:phases
  5715. (modify-phases %standard-phases
  5716. (delete 'configure)
  5717. (replace 'check (lambda _ (invoke "./unit_tests") #t))
  5718. (replace 'install
  5719. (lambda* (#:key outputs #:allow-other-keys)
  5720. (let* ((out (assoc-ref outputs "out"))
  5721. (bin (string-append out "/bin")))
  5722. (install-file "snap-aligner" bin)
  5723. (install-file "SNAPCommand" bin)
  5724. #t))))))
  5725. (native-inputs
  5726. `(("zlib" ,zlib)))
  5727. (home-page "http://snap.cs.berkeley.edu/")
  5728. (synopsis "Short read DNA sequence aligner")
  5729. (description
  5730. "SNAP is a fast and accurate aligner for short DNA reads. It is
  5731. optimized for modern read lengths of 100 bases or higher, and takes advantage
  5732. of these reads to align data quickly through a hash-based indexing scheme.")
  5733. ;; 32-bit systems are not supported by the unpatched code.
  5734. ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
  5735. ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
  5736. ;; systems without a lot of memory cannot make good use of this program.
  5737. (supported-systems '("x86_64-linux"))
  5738. (license license:asl2.0)))
  5739. (define-public sortmerna
  5740. (package
  5741. (name "sortmerna")
  5742. (version "2.1b")
  5743. (source
  5744. (origin
  5745. (method git-fetch)
  5746. (uri (git-reference
  5747. (url "https://github.com/biocore/sortmerna.git")
  5748. (commit version)))
  5749. (file-name (git-file-name name version))
  5750. (sha256
  5751. (base32
  5752. "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
  5753. (build-system gnu-build-system)
  5754. (outputs '("out" ;for binaries
  5755. "db")) ;for sequence databases
  5756. (arguments
  5757. `(#:phases
  5758. (modify-phases %standard-phases
  5759. (replace 'install
  5760. (lambda* (#:key outputs #:allow-other-keys)
  5761. (let* ((out (assoc-ref outputs "out"))
  5762. (bin (string-append out "/bin"))
  5763. (db (assoc-ref outputs "db"))
  5764. (share
  5765. (string-append db "/share/sortmerna/rRNA_databases")))
  5766. (install-file "sortmerna" bin)
  5767. (install-file "indexdb_rna" bin)
  5768. (for-each (lambda (file)
  5769. (install-file file share))
  5770. (find-files "rRNA_databases" ".*fasta"))
  5771. #t))))))
  5772. (inputs
  5773. `(("zlib" ,zlib)))
  5774. (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
  5775. (synopsis "Biological sequence analysis tool for NGS reads")
  5776. (description
  5777. "SortMeRNA is a biological sequence analysis tool for filtering, mapping
  5778. and operational taxonomic unit (OTU) picking of next generation
  5779. sequencing (NGS) reads. The core algorithm is based on approximate seeds and
  5780. allows for fast and sensitive analyses of nucleotide sequences. The main
  5781. application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
  5782. ;; The source includes x86 specific code
  5783. (supported-systems '("x86_64-linux" "i686-linux"))
  5784. (license license:lgpl3)))
  5785. (define-public star
  5786. (package
  5787. (name "star")
  5788. (version "2.7.0b")
  5789. (source (origin
  5790. (method git-fetch)
  5791. (uri (git-reference
  5792. (url "https://github.com/alexdobin/STAR.git")
  5793. (commit version)))
  5794. (file-name (string-append name "-" version "-checkout"))
  5795. (sha256
  5796. (base32
  5797. "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
  5798. (modules '((guix build utils)))
  5799. (snippet
  5800. '(begin
  5801. (substitute* "source/Makefile"
  5802. (("/bin/rm") "rm"))
  5803. ;; Remove pre-built binaries and bundled htslib sources.
  5804. (delete-file-recursively "bin/MacOSX_x86_64")
  5805. (delete-file-recursively "bin/Linux_x86_64")
  5806. (delete-file-recursively "bin/Linux_x86_64_static")
  5807. (delete-file-recursively "source/htslib")
  5808. #t))))
  5809. (build-system gnu-build-system)
  5810. (arguments
  5811. '(#:tests? #f ;no check target
  5812. #:make-flags '("STAR")
  5813. #:phases
  5814. (modify-phases %standard-phases
  5815. (add-after 'unpack 'enter-source-dir
  5816. (lambda _ (chdir "source") #t))
  5817. (add-after 'enter-source-dir 'make-reproducible
  5818. (lambda _
  5819. (substitute* "Makefile"
  5820. (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
  5821. (string-append pre "Built with Guix" post)))
  5822. #t))
  5823. ;; See https://github.com/alexdobin/STAR/pull/562
  5824. (add-after 'enter-source-dir 'add-missing-header
  5825. (lambda _
  5826. (substitute* "SoloReadFeature_inputRecords.cpp"
  5827. (("#include \"binarySearch2.h\"" h)
  5828. (string-append h "\n#include <math.h>")))
  5829. #t))
  5830. (add-after 'enter-source-dir 'do-not-use-bundled-htslib
  5831. (lambda _
  5832. (substitute* "Makefile"
  5833. (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
  5834. _ prefix) prefix))
  5835. (substitute* '("BAMfunctions.cpp"
  5836. "signalFromBAM.h"
  5837. "bam_cat.h"
  5838. "bam_cat.c"
  5839. "STAR.cpp"
  5840. "bamRemoveDuplicates.cpp")
  5841. (("#include \"htslib/([^\"]+\\.h)\"" _ header)
  5842. (string-append "#include <" header ">")))
  5843. (substitute* "IncludeDefine.h"
  5844. (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
  5845. (string-append "<" header ">")))
  5846. #t))
  5847. (replace 'install
  5848. (lambda* (#:key outputs #:allow-other-keys)
  5849. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  5850. (install-file "STAR" bin))
  5851. #t))
  5852. (delete 'configure))))
  5853. (native-inputs
  5854. `(("xxd" ,xxd)))
  5855. (inputs
  5856. `(("htslib" ,htslib)
  5857. ("zlib" ,zlib)))
  5858. (home-page "https://github.com/alexdobin/STAR")
  5859. (synopsis "Universal RNA-seq aligner")
  5860. (description
  5861. "The Spliced Transcripts Alignment to a Reference (STAR) software is
  5862. based on a previously undescribed RNA-seq alignment algorithm that uses
  5863. sequential maximum mappable seed search in uncompressed suffix arrays followed
  5864. by seed clustering and stitching procedure. In addition to unbiased de novo
  5865. detection of canonical junctions, STAR can discover non-canonical splices and
  5866. chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
  5867. sequences.")
  5868. ;; Only 64-bit systems are supported according to the README.
  5869. (supported-systems '("x86_64-linux" "mips64el-linux"))
  5870. ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
  5871. (license license:gpl3+)))
  5872. (define-public subread
  5873. (package
  5874. (name "subread")
  5875. (version "1.6.0")
  5876. (source (origin
  5877. (method url-fetch)
  5878. (uri (string-append "mirror://sourceforge/subread/subread-"
  5879. version "/subread-" version "-source.tar.gz"))
  5880. (sha256
  5881. (base32
  5882. "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
  5883. (build-system gnu-build-system)
  5884. (arguments
  5885. `(#:tests? #f ;no "check" target
  5886. ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
  5887. ;; optimizations by default, so we override these flags such that x86_64
  5888. ;; flags are only added when the build target is an x86_64 system.
  5889. #:make-flags
  5890. (list (let ((system ,(or (%current-target-system)
  5891. (%current-system)))
  5892. (flags '("-ggdb" "-fomit-frame-pointer"
  5893. "-ffast-math" "-funroll-loops"
  5894. "-fmessage-length=0"
  5895. "-O9" "-Wall" "-DMAKE_FOR_EXON"
  5896. "-DMAKE_STANDALONE"
  5897. "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
  5898. (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
  5899. (if (string-prefix? "x86_64" system)
  5900. (string-append "CCFLAGS=" (string-join (append flags flags64)))
  5901. (string-append "CCFLAGS=" (string-join flags))))
  5902. "-f" "Makefile.Linux"
  5903. "CC=gcc ${CCFLAGS}")
  5904. #:phases
  5905. (modify-phases %standard-phases
  5906. (add-after 'unpack 'enter-dir
  5907. (lambda _ (chdir "src") #t))
  5908. (replace 'install
  5909. (lambda* (#:key outputs #:allow-other-keys)
  5910. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  5911. (mkdir-p bin)
  5912. (copy-recursively "../bin" bin))
  5913. #t))
  5914. ;; no "configure" script
  5915. (delete 'configure))))
  5916. (inputs `(("zlib" ,zlib)))
  5917. (home-page "http://bioinf.wehi.edu.au/subread-package/")
  5918. (synopsis "Tool kit for processing next-gen sequencing data")
  5919. (description
  5920. "The subread package contains the following tools: subread aligner, a
  5921. general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
  5922. and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
  5923. features; exactSNP: a SNP caller that discovers SNPs by testing signals
  5924. against local background noises.")
  5925. (license license:gpl3+)))
  5926. (define-public stringtie
  5927. (package
  5928. (name "stringtie")
  5929. (version "1.2.1")
  5930. (source (origin
  5931. (method url-fetch)
  5932. (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
  5933. "stringtie-" version ".tar.gz"))
  5934. (sha256
  5935. (base32
  5936. "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
  5937. (modules '((guix build utils)))
  5938. (snippet
  5939. '(begin
  5940. (delete-file-recursively "samtools-0.1.18")
  5941. #t))))
  5942. (build-system gnu-build-system)
  5943. (arguments
  5944. `(#:tests? #f ;no test suite
  5945. #:phases
  5946. (modify-phases %standard-phases
  5947. ;; no configure script
  5948. (delete 'configure)
  5949. (add-before 'build 'use-system-samtools
  5950. (lambda _
  5951. (substitute* "Makefile"
  5952. (("stringtie: \\$\\{BAM\\}/libbam\\.a")
  5953. "stringtie: "))
  5954. (substitute* '("gclib/GBam.h"
  5955. "gclib/GBam.cpp")
  5956. (("#include \"(bam|sam|kstring).h\"" _ header)
  5957. (string-append "#include <samtools/" header ".h>")))
  5958. #t))
  5959. (add-after 'unpack 'remove-duplicate-typedef
  5960. (lambda _
  5961. ;; This typedef conflicts with the typedef in
  5962. ;; glibc-2.25/include/bits/types.h
  5963. (substitute* "gclib/GThreads.h"
  5964. (("typedef long long __intmax_t;") ""))
  5965. #t))
  5966. (replace 'install
  5967. (lambda* (#:key outputs #:allow-other-keys)
  5968. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  5969. (install-file "stringtie" bin)
  5970. #t))))))
  5971. (inputs
  5972. `(("samtools" ,samtools-0.1)
  5973. ("zlib" ,zlib)))
  5974. (home-page "http://ccb.jhu.edu/software/stringtie/")
  5975. (synopsis "Transcript assembly and quantification for RNA-Seq data")
  5976. (description
  5977. "StringTie is a fast and efficient assembler of RNA-Seq sequence
  5978. alignments into potential transcripts. It uses a novel network flow algorithm
  5979. as well as an optional de novo assembly step to assemble and quantitate
  5980. full-length transcripts representing multiple splice variants for each gene
  5981. locus. Its input can include not only the alignments of raw reads used by
  5982. other transcript assemblers, but also alignments of longer sequences that have
  5983. been assembled from those reads. To identify differentially expressed genes
  5984. between experiments, StringTie's output can be processed either by the
  5985. Cuffdiff or Ballgown programs.")
  5986. (license license:artistic2.0)))
  5987. (define-public taxtastic
  5988. (package
  5989. (name "taxtastic")
  5990. (version "0.8.5")
  5991. (source (origin
  5992. (method url-fetch)
  5993. (uri (pypi-uri "taxtastic" version))
  5994. (sha256
  5995. (base32
  5996. "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
  5997. (build-system python-build-system)
  5998. (arguments
  5999. `(#:python ,python-2
  6000. #:phases
  6001. (modify-phases %standard-phases
  6002. (replace 'check
  6003. (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
  6004. (propagated-inputs
  6005. `(("python-sqlalchemy" ,python2-sqlalchemy)
  6006. ("python-decorator" ,python2-decorator)
  6007. ("python-biopython" ,python2-biopython)
  6008. ("python-pandas" ,python2-pandas)
  6009. ("python-psycopg2" ,python2-psycopg2)
  6010. ("python-fastalite" ,python2-fastalite)
  6011. ("python-pyyaml" ,python2-pyyaml)
  6012. ("python-six" ,python2-six)
  6013. ("python-jinja2" ,python2-jinja2)
  6014. ("python-dendropy" ,python2-dendropy)))
  6015. (home-page "https://github.com/fhcrc/taxtastic")
  6016. (synopsis "Tools for taxonomic naming and annotation")
  6017. (description
  6018. "Taxtastic is software written in python used to build and maintain
  6019. reference packages i.e. collections of reference trees, reference alignments,
  6020. profiles, and associated taxonomic information.")
  6021. (license license:gpl3+)))
  6022. (define-public vcftools
  6023. (package
  6024. (name "vcftools")
  6025. (version "0.1.15")
  6026. (source (origin
  6027. (method url-fetch)
  6028. (uri (string-append
  6029. "https://github.com/vcftools/vcftools/releases/download/v"
  6030. version "/vcftools-" version ".tar.gz"))
  6031. (sha256
  6032. (base32
  6033. "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
  6034. (build-system gnu-build-system)
  6035. (arguments
  6036. `(#:tests? #f ; no "check" target
  6037. #:make-flags (list
  6038. "CFLAGS=-O2" ; override "-m64" flag
  6039. (string-append "PREFIX=" (assoc-ref %outputs "out"))
  6040. (string-append "MANDIR=" (assoc-ref %outputs "out")
  6041. "/share/man/man1"))))
  6042. (native-inputs
  6043. `(("pkg-config" ,pkg-config)))
  6044. (inputs
  6045. `(("perl" ,perl)
  6046. ("zlib" ,zlib)))
  6047. (home-page "https://vcftools.github.io/")
  6048. (synopsis "Tools for working with VCF files")
  6049. (description
  6050. "VCFtools is a program package designed for working with VCF files, such
  6051. as those generated by the 1000 Genomes Project. The aim of VCFtools is to
  6052. provide easily accessible methods for working with complex genetic variation
  6053. data in the form of VCF files.")
  6054. ;; The license is declared as LGPLv3 in the README and
  6055. ;; at https://vcftools.github.io/license.html
  6056. (license license:lgpl3)))
  6057. (define-public infernal
  6058. (package
  6059. (name "infernal")
  6060. (version "1.1.2")
  6061. (source (origin
  6062. (method url-fetch)
  6063. (uri (string-append "http://eddylab.org/software/infernal/"
  6064. "infernal-" version ".tar.gz"))
  6065. (sha256
  6066. (base32
  6067. "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
  6068. (build-system gnu-build-system)
  6069. (native-inputs
  6070. `(("perl" ,perl))) ; for tests
  6071. (home-page "http://eddylab.org/infernal/")
  6072. (synopsis "Inference of RNA alignments")
  6073. (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
  6074. searching DNA sequence databases for RNA structure and sequence similarities.
  6075. It is an implementation of a special case of profile stochastic context-free
  6076. grammars called @dfn{covariance models} (CMs). A CM is like a sequence
  6077. profile, but it scores a combination of sequence consensus and RNA secondary
  6078. structure consensus, so in many cases, it is more capable of identifying RNA
  6079. homologs that conserve their secondary structure more than their primary
  6080. sequence.")
  6081. ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
  6082. (supported-systems '("i686-linux" "x86_64-linux"))
  6083. (license license:bsd-3)))
  6084. (define-public r-centipede
  6085. (package
  6086. (name "r-centipede")
  6087. (version "1.2")
  6088. (source (origin
  6089. (method url-fetch)
  6090. (uri (string-append "http://download.r-forge.r-project.org/"
  6091. "src/contrib/CENTIPEDE_" version ".tar.gz"))
  6092. (sha256
  6093. (base32
  6094. "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
  6095. (build-system r-build-system)
  6096. (home-page "http://centipede.uchicago.edu/")
  6097. (synopsis "Predict transcription factor binding sites")
  6098. (description
  6099. "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
  6100. of the genome that are bound by particular transcription factors. It starts
  6101. by identifying a set of candidate binding sites, and then aims to classify the
  6102. sites according to whether each site is bound or not bound by a transcription
  6103. factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
  6104. between two different types of motif instances using as much relevant
  6105. information as possible.")
  6106. (license (list license:gpl2+ license:gpl3+))))
  6107. (define-public r-copynumber
  6108. (package
  6109. (name "r-copynumber")
  6110. (version "1.22.0")
  6111. (source (origin
  6112. (method url-fetch)
  6113. (uri (bioconductor-uri "copynumber" version))
  6114. (sha256
  6115. (base32
  6116. "0ipwj9i5p1bwhg5d80jdjagm02krpj2v0j47qdgw41h8wncdyal3"))))
  6117. (build-system r-build-system)
  6118. (propagated-inputs
  6119. `(("r-s4vectors" ,r-s4vectors)
  6120. ("r-iranges" ,r-iranges)
  6121. ("r-genomicranges" ,r-genomicranges)
  6122. ("r-biocgenerics" ,r-biocgenerics)))
  6123. (home-page "https://bioconductor.org/packages/copynumber")
  6124. (synopsis "Segmentation of single- and multi-track copy number data")
  6125. (description
  6126. "This package segments single- and multi-track copy number data by a
  6127. penalized least squares regression method.")
  6128. (license license:artistic2.0)))
  6129. (define-public r-geneplotter
  6130. (package
  6131. (name "r-geneplotter")
  6132. (version "1.60.0")
  6133. (source
  6134. (origin
  6135. (method url-fetch)
  6136. (uri (bioconductor-uri "geneplotter" version))
  6137. (sha256
  6138. (base32
  6139. "10khr0pznxf3m0f5gzck9ymljrwcv3vamfmpskd51yjh36lhllqz"))))
  6140. (build-system r-build-system)
  6141. (propagated-inputs
  6142. `(("r-annotate" ,r-annotate)
  6143. ("r-annotationdbi" ,r-annotationdbi)
  6144. ("r-biobase" ,r-biobase)
  6145. ("r-biocgenerics" ,r-biocgenerics)
  6146. ("r-lattice" ,r-lattice)
  6147. ("r-rcolorbrewer" ,r-rcolorbrewer)))
  6148. (home-page "https://bioconductor.org/packages/geneplotter")
  6149. (synopsis "Graphics functions for genomic data")
  6150. (description
  6151. "This package provides functions for plotting genomic data.")
  6152. (license license:artistic2.0)))
  6153. (define-public r-genefilter
  6154. (package
  6155. (name "r-genefilter")
  6156. (version "1.64.0")
  6157. (source
  6158. (origin
  6159. (method url-fetch)
  6160. (uri (bioconductor-uri "genefilter" version))
  6161. (sha256
  6162. (base32
  6163. "0p64s1n1627yafnp25wjr4b22p34lqw574fx2qg4s1m0lffh1z6i"))))
  6164. (build-system r-build-system)
  6165. (native-inputs
  6166. `(("gfortran" ,gfortran)))
  6167. (propagated-inputs
  6168. `(("r-annotate" ,r-annotate)
  6169. ("r-annotationdbi" ,r-annotationdbi)
  6170. ("r-biobase" ,r-biobase)
  6171. ("r-s4vectors" ,r-s4vectors)
  6172. ("r-survival" ,r-survival)))
  6173. (home-page "https://bioconductor.org/packages/genefilter")
  6174. (synopsis "Filter genes from high-throughput experiments")
  6175. (description
  6176. "This package provides basic functions for filtering genes from
  6177. high-throughput sequencing experiments.")
  6178. (license license:artistic2.0)))
  6179. (define-public r-deseq2
  6180. (package
  6181. (name "r-deseq2")
  6182. (version "1.22.2")
  6183. (source
  6184. (origin
  6185. (method url-fetch)
  6186. (uri (bioconductor-uri "DESeq2" version))
  6187. (sha256
  6188. (base32
  6189. "0n5ah84mxn87p45drzy0wh2yknmzj1q5i6gv0v9vgg1lj7awb91r"))))
  6190. (properties `((upstream-name . "DESeq2")))
  6191. (build-system r-build-system)
  6192. (propagated-inputs
  6193. `(("r-biobase" ,r-biobase)
  6194. ("r-biocgenerics" ,r-biocgenerics)
  6195. ("r-biocparallel" ,r-biocparallel)
  6196. ("r-genefilter" ,r-genefilter)
  6197. ("r-geneplotter" ,r-geneplotter)
  6198. ("r-genomicranges" ,r-genomicranges)
  6199. ("r-ggplot2" ,r-ggplot2)
  6200. ("r-hmisc" ,r-hmisc)
  6201. ("r-iranges" ,r-iranges)
  6202. ("r-locfit" ,r-locfit)
  6203. ("r-rcpp" ,r-rcpp)
  6204. ("r-rcpparmadillo" ,r-rcpparmadillo)
  6205. ("r-s4vectors" ,r-s4vectors)
  6206. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  6207. (home-page "https://bioconductor.org/packages/DESeq2")
  6208. (synopsis "Differential gene expression analysis")
  6209. (description
  6210. "This package provides functions to estimate variance-mean dependence in
  6211. count data from high-throughput nucleotide sequencing assays and test for
  6212. differential expression based on a model using the negative binomial
  6213. distribution.")
  6214. (license license:lgpl3+)))
  6215. (define-public r-dexseq
  6216. (package
  6217. (name "r-dexseq")
  6218. (version "1.28.1")
  6219. (source
  6220. (origin
  6221. (method url-fetch)
  6222. (uri (bioconductor-uri "DEXSeq" version))
  6223. (sha256
  6224. (base32
  6225. "0g5w9bn2nb3m670hkcsnhfvvkza2318z9irlhhwhb3n8rdzlsdym"))))
  6226. (properties `((upstream-name . "DEXSeq")))
  6227. (build-system r-build-system)
  6228. (propagated-inputs
  6229. `(("r-annotationdbi" ,r-annotationdbi)
  6230. ("r-biobase" ,r-biobase)
  6231. ("r-biocgenerics" ,r-biocgenerics)
  6232. ("r-biocparallel" ,r-biocparallel)
  6233. ("r-biomart" ,r-biomart)
  6234. ("r-deseq2" ,r-deseq2)
  6235. ("r-genefilter" ,r-genefilter)
  6236. ("r-geneplotter" ,r-geneplotter)
  6237. ("r-genomicranges" ,r-genomicranges)
  6238. ("r-hwriter" ,r-hwriter)
  6239. ("r-iranges" ,r-iranges)
  6240. ("r-rcolorbrewer" ,r-rcolorbrewer)
  6241. ("r-rsamtools" ,r-rsamtools)
  6242. ("r-s4vectors" ,r-s4vectors)
  6243. ("r-statmod" ,r-statmod)
  6244. ("r-stringr" ,r-stringr)
  6245. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  6246. (home-page "https://bioconductor.org/packages/DEXSeq")
  6247. (synopsis "Inference of differential exon usage in RNA-Seq")
  6248. (description
  6249. "This package is focused on finding differential exon usage using RNA-seq
  6250. exon counts between samples with different experimental designs. It provides
  6251. functions that allows the user to make the necessary statistical tests based
  6252. on a model that uses the negative binomial distribution to estimate the
  6253. variance between biological replicates and generalized linear models for
  6254. testing. The package also provides functions for the visualization and
  6255. exploration of the results.")
  6256. (license license:gpl3+)))
  6257. (define-public r-annotationforge
  6258. (package
  6259. (name "r-annotationforge")
  6260. (version "1.24.0")
  6261. (source
  6262. (origin
  6263. (method url-fetch)
  6264. (uri (bioconductor-uri "AnnotationForge" version))
  6265. (sha256
  6266. (base32
  6267. "13yvhf3yskmvhs8szs6rkw93h81h5xqa3h19h91pp6nprhc8s3ll"))))
  6268. (properties
  6269. `((upstream-name . "AnnotationForge")))
  6270. (build-system r-build-system)
  6271. (propagated-inputs
  6272. `(("r-annotationdbi" ,r-annotationdbi)
  6273. ("r-biobase" ,r-biobase)
  6274. ("r-biocgenerics" ,r-biocgenerics)
  6275. ("r-dbi" ,r-dbi)
  6276. ("r-rcurl" ,r-rcurl)
  6277. ("r-rsqlite" ,r-rsqlite)
  6278. ("r-s4vectors" ,r-s4vectors)
  6279. ("r-xml" ,r-xml)))
  6280. (home-page "https://bioconductor.org/packages/AnnotationForge")
  6281. (synopsis "Code for building annotation database packages")
  6282. (description
  6283. "This package provides code for generating Annotation packages and their
  6284. databases. Packages produced are intended to be used with AnnotationDbi.")
  6285. (license license:artistic2.0)))
  6286. (define-public r-rbgl
  6287. (package
  6288. (name "r-rbgl")
  6289. (version "1.58.1")
  6290. (source
  6291. (origin
  6292. (method url-fetch)
  6293. (uri (bioconductor-uri "RBGL" version))
  6294. (sha256
  6295. (base32
  6296. "1l5x2icv9di1lr3gqfi0vjnyd9xc3l77yc42ippqd4cadj3d1pzf"))))
  6297. (properties `((upstream-name . "RBGL")))
  6298. (build-system r-build-system)
  6299. (propagated-inputs `(("r-graph" ,r-graph)))
  6300. (home-page "https://www.bioconductor.org/packages/RBGL")
  6301. (synopsis "Interface to the Boost graph library")
  6302. (description
  6303. "This package provides a fairly extensive and comprehensive interface to
  6304. the graph algorithms contained in the Boost library.")
  6305. (license license:artistic2.0)))
  6306. (define-public r-gseabase
  6307. (package
  6308. (name "r-gseabase")
  6309. (version "1.44.0")
  6310. (source
  6311. (origin
  6312. (method url-fetch)
  6313. (uri (bioconductor-uri "GSEABase" version))
  6314. (sha256
  6315. (base32
  6316. "110al7x0ig8plzrprvhwc7xshi1jzpj2n8llhhg2fh6v6k0k6awr"))))
  6317. (properties `((upstream-name . "GSEABase")))
  6318. (build-system r-build-system)
  6319. (propagated-inputs
  6320. `(("r-annotate" ,r-annotate)
  6321. ("r-annotationdbi" ,r-annotationdbi)
  6322. ("r-biobase" ,r-biobase)
  6323. ("r-biocgenerics" ,r-biocgenerics)
  6324. ("r-graph" ,r-graph)
  6325. ("r-xml" ,r-xml)))
  6326. (home-page "https://bioconductor.org/packages/GSEABase")
  6327. (synopsis "Gene set enrichment data structures and methods")
  6328. (description
  6329. "This package provides classes and methods to support @dfn{Gene Set
  6330. Enrichment Analysis} (GSEA).")
  6331. (license license:artistic2.0)))
  6332. (define-public r-category
  6333. (package
  6334. (name "r-category")
  6335. (version "2.48.0")
  6336. (source
  6337. (origin
  6338. (method url-fetch)
  6339. (uri (bioconductor-uri "Category" version))
  6340. (sha256
  6341. (base32
  6342. "1jdm83bwdfhpfm1y6hwgvxzj6l83h1bdkqv23799kzywnwm016kv"))))
  6343. (properties `((upstream-name . "Category")))
  6344. (build-system r-build-system)
  6345. (propagated-inputs
  6346. `(("r-annotate" ,r-annotate)
  6347. ("r-annotationdbi" ,r-annotationdbi)
  6348. ("r-biobase" ,r-biobase)
  6349. ("r-biocgenerics" ,r-biocgenerics)
  6350. ("r-genefilter" ,r-genefilter)
  6351. ("r-graph" ,r-graph)
  6352. ("r-gseabase" ,r-gseabase)
  6353. ("r-matrix" ,r-matrix)
  6354. ("r-rbgl" ,r-rbgl)
  6355. ("r-dbi" ,r-dbi)))
  6356. (home-page "https://bioconductor.org/packages/Category")
  6357. (synopsis "Category analysis")
  6358. (description
  6359. "This package provides a collection of tools for performing category
  6360. analysis.")
  6361. (license license:artistic2.0)))
  6362. (define-public r-gostats
  6363. (package
  6364. (name "r-gostats")
  6365. (version "2.48.0")
  6366. (source
  6367. (origin
  6368. (method url-fetch)
  6369. (uri (bioconductor-uri "GOstats" version))
  6370. (sha256
  6371. (base32
  6372. "0wlqqgfynwqnqhckhsfjwg9zkj6hkmzwd5y76dhqz720vy21rcln"))))
  6373. (properties `((upstream-name . "GOstats")))
  6374. (build-system r-build-system)
  6375. (propagated-inputs
  6376. `(("r-annotate" ,r-annotate)
  6377. ("r-annotationdbi" ,r-annotationdbi)
  6378. ("r-annotationforge" ,r-annotationforge)
  6379. ("r-biobase" ,r-biobase)
  6380. ("r-category" ,r-category)
  6381. ("r-go-db" ,r-go-db)
  6382. ("r-graph" ,r-graph)
  6383. ("r-rgraphviz" ,r-rgraphviz)
  6384. ("r-rbgl" ,r-rbgl)))
  6385. (home-page "https://bioconductor.org/packages/GOstats")
  6386. (synopsis "Tools for manipulating GO and microarrays")
  6387. (description
  6388. "This package provides a set of tools for interacting with GO and
  6389. microarray data. A variety of basic manipulation tools for graphs, hypothesis
  6390. testing and other simple calculations.")
  6391. (license license:artistic2.0)))
  6392. (define-public r-shortread
  6393. (package
  6394. (name "r-shortread")
  6395. (version "1.40.0")
  6396. (source
  6397. (origin
  6398. (method url-fetch)
  6399. (uri (bioconductor-uri "ShortRead" version))
  6400. (sha256
  6401. (base32
  6402. "0iks123i1adkb9i2q4wvfqdmmj9dy867jvngj9757y8gj6xbcpy1"))))
  6403. (properties `((upstream-name . "ShortRead")))
  6404. (build-system r-build-system)
  6405. (inputs
  6406. `(("zlib" ,zlib)))
  6407. (propagated-inputs
  6408. `(("r-biobase" ,r-biobase)
  6409. ("r-biocgenerics" ,r-biocgenerics)
  6410. ("r-biocparallel" ,r-biocparallel)
  6411. ("r-biostrings" ,r-biostrings)
  6412. ("r-genomeinfodb" ,r-genomeinfodb)
  6413. ("r-genomicalignments" ,r-genomicalignments)
  6414. ("r-genomicranges" ,r-genomicranges)
  6415. ("r-hwriter" ,r-hwriter)
  6416. ("r-iranges" ,r-iranges)
  6417. ("r-lattice" ,r-lattice)
  6418. ("r-latticeextra" ,r-latticeextra)
  6419. ("r-rsamtools" ,r-rsamtools)
  6420. ("r-s4vectors" ,r-s4vectors)
  6421. ("r-xvector" ,r-xvector)
  6422. ("r-zlibbioc" ,r-zlibbioc)))
  6423. (home-page "https://bioconductor.org/packages/ShortRead")
  6424. (synopsis "FASTQ input and manipulation tools")
  6425. (description
  6426. "This package implements sampling, iteration, and input of FASTQ files.
  6427. It includes functions for filtering and trimming reads, and for generating a
  6428. quality assessment report. Data are represented as
  6429. @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
  6430. purposes. The package also contains legacy support for early single-end,
  6431. ungapped alignment formats.")
  6432. (license license:artistic2.0)))
  6433. (define-public r-systempiper
  6434. (package
  6435. (name "r-systempiper")
  6436. (version "1.16.1")
  6437. (source
  6438. (origin
  6439. (method url-fetch)
  6440. (uri (bioconductor-uri "systemPipeR" version))
  6441. (sha256
  6442. (base32
  6443. "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
  6444. (properties `((upstream-name . "systemPipeR")))
  6445. (build-system r-build-system)
  6446. (propagated-inputs
  6447. `(("r-annotate" ,r-annotate)
  6448. ("r-batchjobs" ,r-batchjobs)
  6449. ("r-biocgenerics" ,r-biocgenerics)
  6450. ("r-biostrings" ,r-biostrings)
  6451. ("r-deseq2" ,r-deseq2)
  6452. ("r-edger" ,r-edger)
  6453. ("r-genomicfeatures" ,r-genomicfeatures)
  6454. ("r-genomicranges" ,r-genomicranges)
  6455. ("r-ggplot2" ,r-ggplot2)
  6456. ("r-go-db" ,r-go-db)
  6457. ("r-gostats" ,r-gostats)
  6458. ("r-limma" ,r-limma)
  6459. ("r-pheatmap" ,r-pheatmap)
  6460. ("r-rjson" ,r-rjson)
  6461. ("r-rsamtools" ,r-rsamtools)
  6462. ("r-shortread" ,r-shortread)
  6463. ("r-summarizedexperiment" ,r-summarizedexperiment)
  6464. ("r-variantannotation" ,r-variantannotation)))
  6465. (home-page "https://github.com/tgirke/systemPipeR")
  6466. (synopsis "Next generation sequencing workflow and reporting environment")
  6467. (description
  6468. "This R package provides tools for building and running automated
  6469. end-to-end analysis workflows for a wide range of @dfn{next generation
  6470. sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
  6471. Important features include a uniform workflow interface across different NGS
  6472. applications, automated report generation, and support for running both R and
  6473. command-line software, such as NGS aligners or peak/variant callers, on local
  6474. computers or compute clusters. Efficient handling of complex sample sets and
  6475. experimental designs is facilitated by a consistently implemented sample
  6476. annotation infrastructure.")
  6477. (license license:artistic2.0)))
  6478. (define-public r-grohmm
  6479. (package
  6480. (name "r-grohmm")
  6481. (version "1.16.0")
  6482. (source
  6483. (origin
  6484. (method url-fetch)
  6485. (uri (bioconductor-uri "groHMM" version))
  6486. (sha256
  6487. (base32
  6488. "1ph92fv44b90v7mk4b1mjvv0dlrhl8ba01klxbnd0vs4qn9zxplh"))))
  6489. (properties `((upstream-name . "groHMM")))
  6490. (build-system r-build-system)
  6491. (propagated-inputs
  6492. `(("r-genomeinfodb" ,r-genomeinfodb)
  6493. ("r-genomicalignments" ,r-genomicalignments)
  6494. ("r-genomicranges" ,r-genomicranges)
  6495. ("r-iranges" ,r-iranges)
  6496. ("r-mass" ,r-mass)
  6497. ("r-rtracklayer" ,r-rtracklayer)
  6498. ("r-s4vectors" ,r-s4vectors)))
  6499. (home-page "https://github.com/Kraus-Lab/groHMM")
  6500. (synopsis "GRO-seq analysis pipeline")
  6501. (description
  6502. "This package provides a pipeline for the analysis of GRO-seq data.")
  6503. (license license:gpl3+)))
  6504. (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
  6505. (package
  6506. (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
  6507. (version "3.2.2")
  6508. (source (origin
  6509. (method url-fetch)
  6510. ;; We cannot use bioconductor-uri here because this tarball is
  6511. ;; located under "data/annotation/" instead of "bioc/".
  6512. (uri (string-append "https://bioconductor.org/packages/"
  6513. "release/data/annotation/src/contrib"
  6514. "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
  6515. version ".tar.gz"))
  6516. (sha256
  6517. (base32
  6518. "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
  6519. (properties
  6520. `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
  6521. (build-system r-build-system)
  6522. ;; As this package provides little more than a very large data file it
  6523. ;; doesn't make sense to build substitutes.
  6524. (arguments `(#:substitutable? #f))
  6525. (propagated-inputs
  6526. `(("r-genomicfeatures" ,r-genomicfeatures)))
  6527. (home-page
  6528. "https://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
  6529. (synopsis "Annotation package for human genome in TxDb format")
  6530. (description
  6531. "This package provides an annotation database of Homo sapiens genome
  6532. data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
  6533. track. The database is exposed as a @code{TxDb} object.")
  6534. (license license:artistic2.0)))
  6535. (define-public r-sparql
  6536. (package
  6537. (name "r-sparql")
  6538. (version "1.16")
  6539. (source (origin
  6540. (method url-fetch)
  6541. (uri (cran-uri "SPARQL" version))
  6542. (sha256
  6543. (base32
  6544. "0gak1q06yyhdmcxb2n3v0h9gr1vqd0viqji52wpw211qp6r6dcrc"))))
  6545. (properties `((upstream-name . "SPARQL")))
  6546. (build-system r-build-system)
  6547. (propagated-inputs
  6548. `(("r-rcurl" ,r-rcurl)
  6549. ("r-xml" ,r-xml)))
  6550. (home-page "https://cran.r-project.org/web/packages/SPARQL")
  6551. (synopsis "SPARQL client for R")
  6552. (description "This package provides an interface to use SPARQL to pose
  6553. SELECT or UPDATE queries to an end-point.")
  6554. ;; The only license indication is found in the DESCRIPTION file,
  6555. ;; which states GPL-3. So we cannot assume GPLv3+.
  6556. (license license:gpl3)))
  6557. (define-public vsearch
  6558. (package
  6559. (name "vsearch")
  6560. (version "2.9.1")
  6561. (source
  6562. (origin
  6563. (method git-fetch)
  6564. (uri (git-reference
  6565. (url "https://github.com/torognes/vsearch.git")
  6566. (commit (string-append "v" version))))
  6567. (file-name (git-file-name name version))
  6568. (sha256
  6569. (base32
  6570. "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
  6571. (patches (search-patches "vsearch-unbundle-cityhash.patch"))
  6572. (snippet
  6573. '(begin
  6574. ;; Remove bundled cityhash sources. The vsearch source is adjusted
  6575. ;; for this in the patch.
  6576. (delete-file "src/city.h")
  6577. (delete-file "src/citycrc.h")
  6578. (delete-file "src/city.cc")
  6579. #t))))
  6580. (build-system gnu-build-system)
  6581. (inputs
  6582. `(("zlib" ,zlib)
  6583. ("bzip2" ,bzip2)
  6584. ("cityhash" ,cityhash)))
  6585. (native-inputs
  6586. `(("autoconf" ,autoconf)
  6587. ("automake" ,automake)))
  6588. (synopsis "Sequence search tools for metagenomics")
  6589. (description
  6590. "VSEARCH supports DNA sequence searching, clustering, chimera detection,
  6591. dereplication, pairwise alignment, shuffling, subsampling, sorting and
  6592. masking. The tool takes advantage of parallelism in the form of SIMD
  6593. vectorization as well as multiple threads to perform accurate alignments at
  6594. high speed. VSEARCH uses an optimal global aligner (full dynamic programming
  6595. Needleman-Wunsch).")
  6596. (home-page "https://github.com/torognes/vsearch")
  6597. ;; vsearch uses non-portable SSE intrinsics so building fails on other
  6598. ;; platforms.
  6599. (supported-systems '("x86_64-linux"))
  6600. ;; Dual licensed; also includes public domain source.
  6601. (license (list license:gpl3 license:bsd-2))))
  6602. (define-public pardre
  6603. (package
  6604. (name "pardre")
  6605. ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
  6606. (version "1.1.5-1")
  6607. (source
  6608. (origin
  6609. (method url-fetch)
  6610. (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
  6611. "1.1.5" ".tar.gz"))
  6612. (sha256
  6613. (base32
  6614. "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
  6615. (build-system gnu-build-system)
  6616. (arguments
  6617. `(#:tests? #f ; no tests included
  6618. #:phases
  6619. (modify-phases %standard-phases
  6620. (delete 'configure)
  6621. (replace 'install
  6622. (lambda* (#:key outputs #:allow-other-keys)
  6623. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  6624. (install-file "ParDRe" bin)
  6625. #t))))))
  6626. (inputs
  6627. `(("openmpi" ,openmpi)
  6628. ("zlib" ,zlib)))
  6629. (synopsis "Parallel tool to remove duplicate DNA reads")
  6630. (description
  6631. "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
  6632. Duplicate reads can be seen as identical or nearly identical sequences with
  6633. some mismatches. This tool lets users avoid the analysis of unnecessary
  6634. reads, reducing the time of subsequent procedures with the
  6635. dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
  6636. in order to exploit the parallel capabilities of multicore clusters. It is
  6637. faster than multithreaded counterparts (end of 2015) for the same number of
  6638. cores and, thanks to the message-passing technology, it can be executed on
  6639. clusters.")
  6640. (home-page "https://sourceforge.net/projects/pardre/")
  6641. (license license:gpl3+)))
  6642. (define-public ruby-bio-kseq
  6643. (package
  6644. (name "ruby-bio-kseq")
  6645. (version "0.0.2")
  6646. (source
  6647. (origin
  6648. (method url-fetch)
  6649. (uri (rubygems-uri "bio-kseq" version))
  6650. (sha256
  6651. (base32
  6652. "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
  6653. (build-system ruby-build-system)
  6654. (arguments
  6655. `(#:test-target "spec"))
  6656. (native-inputs
  6657. `(("bundler" ,bundler)
  6658. ("ruby-rspec" ,ruby-rspec)
  6659. ("ruby-rake-compiler" ,ruby-rake-compiler)))
  6660. (inputs
  6661. `(("zlib" ,zlib)))
  6662. (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
  6663. (description
  6664. "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
  6665. FASTQ parsing code. It provides a fast iterator over sequences and their
  6666. quality scores.")
  6667. (home-page "https://github.com/gusevfe/bio-kseq")
  6668. (license license:expat)))
  6669. (define-public bio-locus
  6670. (package
  6671. (name "bio-locus")
  6672. (version "0.0.7")
  6673. (source
  6674. (origin
  6675. (method url-fetch)
  6676. (uri (rubygems-uri "bio-locus" version))
  6677. (sha256
  6678. (base32
  6679. "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
  6680. (build-system ruby-build-system)
  6681. (native-inputs
  6682. `(("ruby-rspec" ,ruby-rspec)))
  6683. (synopsis "Tool for fast querying of genome locations")
  6684. (description
  6685. "Bio-locus is a tabix-like tool for fast querying of genome
  6686. locations. Many file formats in bioinformatics contain records that
  6687. start with a chromosome name and a position for a SNP, or a start-end
  6688. position for indels. Bio-locus allows users to store this chr+pos or
  6689. chr+pos+alt information in a database.")
  6690. (home-page "https://github.com/pjotrp/bio-locus")
  6691. (license license:expat)))
  6692. (define-public bio-blastxmlparser
  6693. (package
  6694. (name "bio-blastxmlparser")
  6695. (version "2.0.4")
  6696. (source (origin
  6697. (method url-fetch)
  6698. (uri (rubygems-uri "bio-blastxmlparser" version))
  6699. (sha256
  6700. (base32
  6701. "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
  6702. (build-system ruby-build-system)
  6703. (propagated-inputs
  6704. `(("ruby-bio-logger" ,ruby-bio-logger)
  6705. ("ruby-nokogiri" ,ruby-nokogiri)))
  6706. (inputs
  6707. `(("ruby-rspec" ,ruby-rspec)))
  6708. (synopsis "Fast big data BLAST XML parser and library")
  6709. (description
  6710. "Very fast parallel big-data BLAST XML file parser which can be used as
  6711. command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
  6712. generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
  6713. (home-page "https://github.com/pjotrp/blastxmlparser")
  6714. (license license:expat)))
  6715. (define-public bioruby
  6716. (package
  6717. (name "bioruby")
  6718. (version "1.5.2")
  6719. (source
  6720. (origin
  6721. (method url-fetch)
  6722. (uri (rubygems-uri "bio" version))
  6723. (sha256
  6724. (base32
  6725. "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
  6726. (build-system ruby-build-system)
  6727. (propagated-inputs
  6728. `(("ruby-libxml" ,ruby-libxml)))
  6729. (native-inputs
  6730. `(("which" ,which))) ; required for test phase
  6731. (arguments
  6732. `(#:phases
  6733. (modify-phases %standard-phases
  6734. (add-before 'build 'patch-test-command
  6735. (lambda _
  6736. (substitute* '("test/functional/bio/test_command.rb")
  6737. (("/bin/sh") (which "sh")))
  6738. (substitute* '("test/functional/bio/test_command.rb")
  6739. (("/bin/ls") (which "ls")))
  6740. (substitute* '("test/functional/bio/test_command.rb")
  6741. (("which") (which "which")))
  6742. (substitute* '("test/functional/bio/test_command.rb",
  6743. "test/data/command/echoarg2.sh")
  6744. (("/bin/echo") (which "echo")))
  6745. #t)))))
  6746. (synopsis "Ruby library, shell and utilities for bioinformatics")
  6747. (description "BioRuby comes with a comprehensive set of Ruby development
  6748. tools and libraries for bioinformatics and molecular biology. BioRuby has
  6749. components for sequence analysis, pathway analysis, protein modelling and
  6750. phylogenetic analysis; it supports many widely used data formats and provides
  6751. easy access to databases, external programs and public web services, including
  6752. BLAST, KEGG, GenBank, MEDLINE and GO.")
  6753. (home-page "http://bioruby.org/")
  6754. ;; Code is released under Ruby license, except for setup
  6755. ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
  6756. (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
  6757. (define-public r-acsnminer
  6758. (package
  6759. (name "r-acsnminer")
  6760. (version "0.16.8.25")
  6761. (source (origin
  6762. (method url-fetch)
  6763. (uri (cran-uri "ACSNMineR" version))
  6764. (sha256
  6765. (base32
  6766. "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
  6767. (properties `((upstream-name . "ACSNMineR")))
  6768. (build-system r-build-system)
  6769. (propagated-inputs
  6770. `(("r-ggplot2" ,r-ggplot2)
  6771. ("r-gridextra" ,r-gridextra)))
  6772. (home-page "https://cran.r-project.org/web/packages/ACSNMineR")
  6773. (synopsis "Gene enrichment analysis")
  6774. (description
  6775. "This package provides tools to compute and represent gene set enrichment
  6776. or depletion from your data based on pre-saved maps from the @dfn{Atlas of
  6777. Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
  6778. enrichment can be run with hypergeometric test or Fisher exact test, and can
  6779. use multiple corrections. Visualization of data can be done either by
  6780. barplots or heatmaps.")
  6781. (license license:gpl2+)))
  6782. (define-public r-biocinstaller
  6783. (package
  6784. (name "r-biocinstaller")
  6785. (version "1.32.1")
  6786. (source (origin
  6787. (method url-fetch)
  6788. (uri (bioconductor-uri "BiocInstaller" version))
  6789. (sha256
  6790. (base32
  6791. "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
  6792. (properties
  6793. `((upstream-name . "BiocInstaller")))
  6794. (build-system r-build-system)
  6795. (home-page "https://bioconductor.org/packages/BiocInstaller")
  6796. (synopsis "Install Bioconductor packages")
  6797. (description "This package is used to install and update R packages from
  6798. Bioconductor, CRAN, and Github.")
  6799. (license license:artistic2.0)))
  6800. (define-public r-biocviews
  6801. (package
  6802. (name "r-biocviews")
  6803. (version "1.50.10")
  6804. (source (origin
  6805. (method url-fetch)
  6806. (uri (bioconductor-uri "biocViews" version))
  6807. (sha256
  6808. (base32
  6809. "06ms82pyc5rxbd9crfvqjxcwpafv0c627i83v80d12925mrc51h8"))))
  6810. (properties
  6811. `((upstream-name . "biocViews")))
  6812. (build-system r-build-system)
  6813. (propagated-inputs
  6814. `(("r-biobase" ,r-biobase)
  6815. ("r-graph" ,r-graph)
  6816. ("r-rbgl" ,r-rbgl)
  6817. ("r-rcurl" ,r-rcurl)
  6818. ("r-xml" ,r-xml)
  6819. ("r-runit" ,r-runit)))
  6820. (home-page "https://bioconductor.org/packages/biocViews")
  6821. (synopsis "Bioconductor package categorization helper")
  6822. (description "The purpose of biocViews is to create HTML pages that
  6823. categorize packages in a Bioconductor package repository according to keywords,
  6824. also known as views, in a controlled vocabulary.")
  6825. (license license:artistic2.0)))
  6826. (define-public r-bookdown
  6827. (package
  6828. (name "r-bookdown")
  6829. (version "0.9")
  6830. (source (origin
  6831. (method url-fetch)
  6832. (uri (cran-uri "bookdown" version))
  6833. (sha256
  6834. (base32
  6835. "0vg1s1w0l9pm95asqb21yf39mfk1nc9rdhmlys9xwr7p7i7rsz32"))))
  6836. (build-system r-build-system)
  6837. (propagated-inputs
  6838. `(("r-htmltools" ,r-htmltools)
  6839. ("r-knitr" ,r-knitr)
  6840. ("r-rmarkdown" ,r-rmarkdown)
  6841. ("r-tinytex" ,r-tinytex)
  6842. ("r-yaml" ,r-yaml)
  6843. ("r-xfun" ,r-xfun)))
  6844. (home-page "https://github.com/rstudio/bookdown")
  6845. (synopsis "Authoring books and technical documents with R markdown")
  6846. (description "This package provides output formats and utilities for
  6847. authoring books and technical documents with R Markdown.")
  6848. (license license:gpl3)))
  6849. (define-public r-biocstyle
  6850. (package
  6851. (name "r-biocstyle")
  6852. (version "2.10.0")
  6853. (source (origin
  6854. (method url-fetch)
  6855. (uri (bioconductor-uri "BiocStyle" version))
  6856. (sha256
  6857. (base32
  6858. "01lm8xljilj666fcl3wnw82dxkcxnlr294lddr553rm8xr5nwg31"))))
  6859. (properties
  6860. `((upstream-name . "BiocStyle")))
  6861. (build-system r-build-system)
  6862. (propagated-inputs
  6863. `(("r-biocmanager" ,r-biocmanager)
  6864. ("r-bookdown" ,r-bookdown)
  6865. ("r-knitr" ,r-knitr)
  6866. ("r-rmarkdown" ,r-rmarkdown)
  6867. ("r-yaml" ,r-yaml)))
  6868. (home-page "https://bioconductor.org/packages/BiocStyle")
  6869. (synopsis "Bioconductor formatting styles")
  6870. (description "This package provides standard formatting styles for
  6871. Bioconductor PDF and HTML documents. Package vignettes illustrate use and
  6872. functionality.")
  6873. (license license:artistic2.0)))
  6874. (define-public r-bioccheck
  6875. (package
  6876. (name "r-bioccheck")
  6877. (version "1.18.0")
  6878. (source (origin
  6879. (method url-fetch)
  6880. (uri (bioconductor-uri "BiocCheck" version))
  6881. (sha256
  6882. (base32
  6883. "0zamvs5jar38293ff27imvwy0ra25y64ls9z8w3q1y4jcp8p8pg7"))))
  6884. (properties
  6885. `((upstream-name . "BiocCheck")))
  6886. (build-system r-build-system)
  6887. (arguments
  6888. '(#:phases
  6889. (modify-phases %standard-phases
  6890. ;; This package can be used by calling BiocCheck(<package>) from
  6891. ;; within R, or by running R CMD BiocCheck <package>. This phase
  6892. ;; makes sure the latter works. For this to work, the BiocCheck
  6893. ;; script must be somewhere on the PATH (not the R bin directory).
  6894. (add-after 'install 'install-bioccheck-subcommand
  6895. (lambda* (#:key outputs #:allow-other-keys)
  6896. (let* ((out (assoc-ref outputs "out"))
  6897. (dest-dir (string-append out "/bin"))
  6898. (script-dir
  6899. (string-append out "/site-library/BiocCheck/script/")))
  6900. (mkdir-p dest-dir)
  6901. (symlink (string-append script-dir "/checkBadDeps.R")
  6902. (string-append dest-dir "/checkBadDeps.R"))
  6903. (symlink (string-append script-dir "/BiocCheck")
  6904. (string-append dest-dir "/BiocCheck")))
  6905. #t)))))
  6906. (propagated-inputs
  6907. `(("r-codetools" ,r-codetools)
  6908. ("r-graph" ,r-graph)
  6909. ("r-httr" ,r-httr)
  6910. ("r-knitr" ,r-knitr)
  6911. ("r-optparse" ,r-optparse)
  6912. ("r-biocmanager" ,r-biocmanager)
  6913. ("r-biocviews" ,r-biocviews)
  6914. ("r-stringdist" ,r-stringdist)))
  6915. (home-page "https://bioconductor.org/packages/BiocCheck")
  6916. (synopsis "Executes Bioconductor-specific package checks")
  6917. (description "This package contains tools to perform additional quality
  6918. checks on R packages that are to be submitted to the Bioconductor repository.")
  6919. (license license:artistic2.0)))
  6920. (define-public r-optparse
  6921. (package
  6922. (name "r-optparse")
  6923. (version "1.6.1")
  6924. (source
  6925. (origin
  6926. (method url-fetch)
  6927. (uri (cran-uri "optparse" version))
  6928. (sha256
  6929. (base32
  6930. "04vyb6dhcga30mvghsg1p052jmf69xqxkvh3hzqz7dscyppy76w1"))))
  6931. (build-system r-build-system)
  6932. (propagated-inputs
  6933. `(("r-getopt" ,r-getopt)))
  6934. (home-page
  6935. "https://github.com/trevorld/optparse")
  6936. (synopsis "Command line option parser")
  6937. (description
  6938. "This package provides a command line parser inspired by Python's
  6939. @code{optparse} library to be used with Rscript to write shebang scripts
  6940. that accept short and long options.")
  6941. (license license:gpl2+)))
  6942. (define-public r-dnacopy
  6943. (package
  6944. (name "r-dnacopy")
  6945. (version "1.56.0")
  6946. (source (origin
  6947. (method url-fetch)
  6948. (uri (bioconductor-uri "DNAcopy" version))
  6949. (sha256
  6950. (base32
  6951. "04cqdqxhva66xwh1s2vffi56b9fcrqd4slcrvqasj5lp2rkjli82"))))
  6952. (properties
  6953. `((upstream-name . "DNAcopy")))
  6954. (build-system r-build-system)
  6955. (inputs
  6956. `(("gfortran" ,gfortran)))
  6957. (home-page "https://bioconductor.org/packages/DNAcopy")
  6958. (synopsis "Implementation of a circular binary segmentation algorithm")
  6959. (description "This package implements the circular binary segmentation (CBS)
  6960. algorithm to segment DNA copy number data and identify genomic regions with
  6961. abnormal copy number.")
  6962. (license license:gpl2+)))
  6963. (define-public r-s4vectors
  6964. (package
  6965. (name "r-s4vectors")
  6966. (version "0.20.1")
  6967. (source (origin
  6968. (method url-fetch)
  6969. (uri (bioconductor-uri "S4Vectors" version))
  6970. (sha256
  6971. (base32
  6972. "18whrw67nxn82xshckl2pjy7d14sa3c27h3n9naqyqwz88lr6dzg"))))
  6973. (properties
  6974. `((upstream-name . "S4Vectors")))
  6975. (build-system r-build-system)
  6976. (propagated-inputs
  6977. `(("r-biocgenerics" ,r-biocgenerics)))
  6978. (home-page "https://bioconductor.org/packages/S4Vectors")
  6979. (synopsis "S4 implementation of vectors and lists")
  6980. (description
  6981. "The S4Vectors package defines the @code{Vector} and @code{List} virtual
  6982. classes and a set of generic functions that extend the semantic of ordinary
  6983. vectors and lists in R. Package developers can easily implement vector-like
  6984. or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
  6985. In addition, a few low-level concrete subclasses of general interest (e.g.
  6986. @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
  6987. S4Vectors package itself.")
  6988. (license license:artistic2.0)))
  6989. (define-public r-seqinr
  6990. (package
  6991. (name "r-seqinr")
  6992. (version "3.4-5")
  6993. (source
  6994. (origin
  6995. (method url-fetch)
  6996. (uri (cran-uri "seqinr" version))
  6997. (sha256
  6998. (base32
  6999. "17zv0n5cji17izwmwg0jcbxbjl3w5rls91w15svcnlpxjms38ahn"))))
  7000. (build-system r-build-system)
  7001. (propagated-inputs
  7002. `(("r-ade4" ,r-ade4)
  7003. ("r-segmented" ,r-segmented)))
  7004. (inputs
  7005. `(("zlib" ,zlib)))
  7006. (home-page "http://seqinr.r-forge.r-project.org/")
  7007. (synopsis "Biological sequences retrieval and analysis")
  7008. (description
  7009. "This package provides tools for exploratory data analysis and data
  7010. visualization of biological sequence (DNA and protein) data. It also includes
  7011. utilities for sequence data management under the ACNUC system.")
  7012. (license license:gpl2+)))
  7013. (define-public r-iranges
  7014. (package
  7015. (name "r-iranges")
  7016. (version "2.16.0")
  7017. (source (origin
  7018. (method url-fetch)
  7019. (uri (bioconductor-uri "IRanges" version))
  7020. (sha256
  7021. (base32
  7022. "0ljppsk611xi72gc8mbdx1311b63b1ijd401jz5xmxk5frla1nc1"))))
  7023. (properties
  7024. `((upstream-name . "IRanges")))
  7025. (build-system r-build-system)
  7026. (propagated-inputs
  7027. `(("r-biocgenerics" ,r-biocgenerics)
  7028. ("r-s4vectors" ,r-s4vectors)))
  7029. (home-page "https://bioconductor.org/packages/IRanges")
  7030. (synopsis "Infrastructure for manipulating intervals on sequences")
  7031. (description
  7032. "This package provides efficient low-level and highly reusable S4 classes
  7033. for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
  7034. generally, data that can be organized sequentially (formally defined as
  7035. @code{Vector} objects), as well as views on these @code{Vector} objects.
  7036. Efficient list-like classes are also provided for storing big collections of
  7037. instances of the basic classes. All classes in the package use consistent
  7038. naming and share the same rich and consistent \"Vector API\" as much as
  7039. possible.")
  7040. (license license:artistic2.0)))
  7041. (define-public r-genomeinfodbdata
  7042. (package
  7043. (name "r-genomeinfodbdata")
  7044. (version "1.2.0")
  7045. (source (origin
  7046. (method url-fetch)
  7047. ;; We cannot use bioconductor-uri here because this tarball is
  7048. ;; located under "data/annotation/" instead of "bioc/".
  7049. (uri (string-append "https://bioconductor.org/packages/release/"
  7050. "data/annotation/src/contrib/GenomeInfoDbData_"
  7051. version ".tar.gz"))
  7052. (sha256
  7053. (base32
  7054. "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
  7055. (properties
  7056. `((upstream-name . "GenomeInfoDbData")))
  7057. (build-system r-build-system)
  7058. (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
  7059. (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
  7060. (description "This package contains data for mapping between NCBI taxonomy
  7061. ID and species. It is used by functions in the GenomeInfoDb package.")
  7062. (license license:artistic2.0)))
  7063. (define-public r-genomeinfodb
  7064. (package
  7065. (name "r-genomeinfodb")
  7066. (version "1.18.1")
  7067. (source (origin
  7068. (method url-fetch)
  7069. (uri (bioconductor-uri "GenomeInfoDb" version))
  7070. (sha256
  7071. (base32
  7072. "049pyzr8iszv3g7wdqf3pz7vg7bzd450c20ln6fgw4g5xnkkr10s"))))
  7073. (properties
  7074. `((upstream-name . "GenomeInfoDb")))
  7075. (build-system r-build-system)
  7076. (propagated-inputs
  7077. `(("r-biocgenerics" ,r-biocgenerics)
  7078. ("r-genomeinfodbdata" ,r-genomeinfodbdata)
  7079. ("r-iranges" ,r-iranges)
  7080. ("r-rcurl" ,r-rcurl)
  7081. ("r-s4vectors" ,r-s4vectors)))
  7082. (home-page "https://bioconductor.org/packages/GenomeInfoDb")
  7083. (synopsis "Utilities for manipulating chromosome identifiers")
  7084. (description
  7085. "This package contains data and functions that define and allow
  7086. translation between different chromosome sequence naming conventions (e.g.,
  7087. \"chr1\" versus \"1\"), including a function that attempts to place sequence
  7088. names in their natural, rather than lexicographic, order.")
  7089. (license license:artistic2.0)))
  7090. (define-public r-edger
  7091. (package
  7092. (name "r-edger")
  7093. (version "3.24.3")
  7094. (source (origin
  7095. (method url-fetch)
  7096. (uri (bioconductor-uri "edgeR" version))
  7097. (sha256
  7098. (base32
  7099. "15yimsbsxmxhlsfmgw5j7fd8qn08zz4xqxrir1c6n2dc103y22xg"))))
  7100. (properties `((upstream-name . "edgeR")))
  7101. (build-system r-build-system)
  7102. (propagated-inputs
  7103. `(("r-limma" ,r-limma)
  7104. ("r-locfit" ,r-locfit)
  7105. ("r-rcpp" ,r-rcpp)
  7106. ("r-statmod" ,r-statmod))) ;for estimateDisp
  7107. (home-page "http://bioinf.wehi.edu.au/edgeR")
  7108. (synopsis "EdgeR does empirical analysis of digital gene expression data")
  7109. (description "This package can do differential expression analysis of
  7110. RNA-seq expression profiles with biological replication. It implements a range
  7111. of statistical methodology based on the negative binomial distributions,
  7112. including empirical Bayes estimation, exact tests, generalized linear models
  7113. and quasi-likelihood tests. It be applied to differential signal analysis of
  7114. other types of genomic data that produce counts, including ChIP-seq, SAGE and
  7115. CAGE.")
  7116. (license license:gpl2+)))
  7117. (define-public r-variantannotation
  7118. (package
  7119. (name "r-variantannotation")
  7120. (version "1.28.10")
  7121. (source (origin
  7122. (method url-fetch)
  7123. (uri (bioconductor-uri "VariantAnnotation" version))
  7124. (sha256
  7125. (base32
  7126. "0kxf583cgkdz1shi85r0mpnfxmzi7s5f6srd1czbdl2iibvrm8jn"))))
  7127. (properties
  7128. `((upstream-name . "VariantAnnotation")))
  7129. (inputs
  7130. `(("zlib" ,zlib)))
  7131. (propagated-inputs
  7132. `(("r-annotationdbi" ,r-annotationdbi)
  7133. ("r-biobase" ,r-biobase)
  7134. ("r-biocgenerics" ,r-biocgenerics)
  7135. ("r-biostrings" ,r-biostrings)
  7136. ("r-bsgenome" ,r-bsgenome)
  7137. ("r-dbi" ,r-dbi)
  7138. ("r-genomeinfodb" ,r-genomeinfodb)
  7139. ("r-genomicfeatures" ,r-genomicfeatures)
  7140. ("r-genomicranges" ,r-genomicranges)
  7141. ("r-iranges" ,r-iranges)
  7142. ("r-summarizedexperiment" ,r-summarizedexperiment)
  7143. ("r-rsamtools" ,r-rsamtools)
  7144. ("r-rtracklayer" ,r-rtracklayer)
  7145. ("r-s4vectors" ,r-s4vectors)
  7146. ("r-xvector" ,r-xvector)
  7147. ("r-zlibbioc" ,r-zlibbioc)))
  7148. (build-system r-build-system)
  7149. (home-page "https://bioconductor.org/packages/VariantAnnotation")
  7150. (synopsis "Package for annotation of genetic variants")
  7151. (description "This R package can annotate variants, compute amino acid
  7152. coding changes and predict coding outcomes.")
  7153. (license license:artistic2.0)))
  7154. (define-public r-limma
  7155. (package
  7156. (name "r-limma")
  7157. (version "3.38.3")
  7158. (source (origin
  7159. (method url-fetch)
  7160. (uri (bioconductor-uri "limma" version))
  7161. (sha256
  7162. (base32
  7163. "08va8jggmv61wym955mnb1n31mgikrmjys7dl1kp5hp3yia8jg7l"))))
  7164. (build-system r-build-system)
  7165. (home-page "http://bioinf.wehi.edu.au/limma")
  7166. (synopsis "Package for linear models for microarray and RNA-seq data")
  7167. (description "This package can be used for the analysis of gene expression
  7168. studies, especially the use of linear models for analysing designed experiments
  7169. and the assessment of differential expression. The analysis methods apply to
  7170. different technologies, including microarrays, RNA-seq, and quantitative PCR.")
  7171. (license license:gpl2+)))
  7172. (define-public r-xvector
  7173. (package
  7174. (name "r-xvector")
  7175. (version "0.22.0")
  7176. (source (origin
  7177. (method url-fetch)
  7178. (uri (bioconductor-uri "XVector" version))
  7179. (sha256
  7180. (base32
  7181. "01fph1ydd6g0rl5mcw54spx22glq2kqv7wyw8bqw0plmabzcwwdm"))))
  7182. (properties
  7183. `((upstream-name . "XVector")))
  7184. (build-system r-build-system)
  7185. (arguments
  7186. `(#:phases
  7187. (modify-phases %standard-phases
  7188. (add-after 'unpack 'use-system-zlib
  7189. (lambda _
  7190. (substitute* "DESCRIPTION"
  7191. (("zlibbioc, ") ""))
  7192. (substitute* "NAMESPACE"
  7193. (("import\\(zlibbioc\\)") ""))
  7194. #t)))))
  7195. (inputs
  7196. `(("zlib" ,zlib)))
  7197. (propagated-inputs
  7198. `(("r-biocgenerics" ,r-biocgenerics)
  7199. ("r-iranges" ,r-iranges)
  7200. ("r-s4vectors" ,r-s4vectors)))
  7201. (home-page "https://bioconductor.org/packages/XVector")
  7202. (synopsis "Representation and manpulation of external sequences")
  7203. (description
  7204. "This package provides memory efficient S4 classes for storing sequences
  7205. \"externally\" (behind an R external pointer, or on disk).")
  7206. (license license:artistic2.0)))
  7207. (define-public r-genomicranges
  7208. (package
  7209. (name "r-genomicranges")
  7210. (version "1.34.0")
  7211. (source (origin
  7212. (method url-fetch)
  7213. (uri (bioconductor-uri "GenomicRanges" version))
  7214. (sha256
  7215. (base32
  7216. "0bgh14d15dpf2iy36qinw45r6n45rqkf0ghazrdl3jfva6vbrb29"))))
  7217. (properties
  7218. `((upstream-name . "GenomicRanges")))
  7219. (build-system r-build-system)
  7220. (propagated-inputs
  7221. `(("r-biocgenerics" ,r-biocgenerics)
  7222. ("r-genomeinfodb" ,r-genomeinfodb)
  7223. ("r-iranges" ,r-iranges)
  7224. ("r-s4vectors" ,r-s4vectors)
  7225. ("r-xvector" ,r-xvector)))
  7226. (home-page "https://bioconductor.org/packages/GenomicRanges")
  7227. (synopsis "Representation and manipulation of genomic intervals")
  7228. (description
  7229. "This package provides tools to efficiently represent and manipulate
  7230. genomic annotations and alignments is playing a central role when it comes to
  7231. analyzing high-throughput sequencing data (a.k.a. NGS data). The
  7232. GenomicRanges package defines general purpose containers for storing and
  7233. manipulating genomic intervals and variables defined along a genome.")
  7234. (license license:artistic2.0)))
  7235. (define-public r-biobase
  7236. (package
  7237. (name "r-biobase")
  7238. (version "2.42.0")
  7239. (source (origin
  7240. (method url-fetch)
  7241. (uri (bioconductor-uri "Biobase" version))
  7242. (sha256
  7243. (base32
  7244. "10nr6nrkj5vlq8hsgbhbhv669z0dbpz4m3vz9k32rx1czbrrqwin"))))
  7245. (properties
  7246. `((upstream-name . "Biobase")))
  7247. (build-system r-build-system)
  7248. (propagated-inputs
  7249. `(("r-biocgenerics" ,r-biocgenerics)))
  7250. (home-page "https://bioconductor.org/packages/Biobase")
  7251. (synopsis "Base functions for Bioconductor")
  7252. (description
  7253. "This package provides functions that are needed by many other packages
  7254. on Bioconductor or which replace R functions.")
  7255. (license license:artistic2.0)))
  7256. (define-public r-annotationdbi
  7257. (package
  7258. (name "r-annotationdbi")
  7259. (version "1.44.0")
  7260. (source (origin
  7261. (method url-fetch)
  7262. (uri (bioconductor-uri "AnnotationDbi" version))
  7263. (sha256
  7264. (base32
  7265. "1954vimkx5yb9irppq8vssq0f3yjkg36w38b9r0rqmijx1ps7x5d"))))
  7266. (properties
  7267. `((upstream-name . "AnnotationDbi")))
  7268. (build-system r-build-system)
  7269. (propagated-inputs
  7270. `(("r-biobase" ,r-biobase)
  7271. ("r-biocgenerics" ,r-biocgenerics)
  7272. ("r-dbi" ,r-dbi)
  7273. ("r-iranges" ,r-iranges)
  7274. ("r-rsqlite" ,r-rsqlite)
  7275. ("r-s4vectors" ,r-s4vectors)))
  7276. (home-page "https://bioconductor.org/packages/AnnotationDbi")
  7277. (synopsis "Annotation database interface")
  7278. (description
  7279. "This package provides user interface and database connection code for
  7280. annotation data packages using SQLite data storage.")
  7281. (license license:artistic2.0)))
  7282. (define-public r-biomart
  7283. (package
  7284. (name "r-biomart")
  7285. (version "2.38.0")
  7286. (source (origin
  7287. (method url-fetch)
  7288. (uri (bioconductor-uri "biomaRt" version))
  7289. (sha256
  7290. (base32
  7291. "1lshkknp7dmr3p6dd2zbv86cc71h53ggh9ji83jcjym8sgbbspl2"))))
  7292. (properties
  7293. `((upstream-name . "biomaRt")))
  7294. (build-system r-build-system)
  7295. (propagated-inputs
  7296. `(("r-annotationdbi" ,r-annotationdbi)
  7297. ("r-httr" ,r-httr)
  7298. ("r-progress" ,r-progress)
  7299. ("r-rcurl" ,r-rcurl)
  7300. ("r-stringr" ,r-stringr)
  7301. ("r-xml" ,r-xml)))
  7302. (home-page "https://bioconductor.org/packages/biomaRt")
  7303. (synopsis "Interface to BioMart databases")
  7304. (description
  7305. "biomaRt provides an interface to a growing collection of databases
  7306. implementing the @url{BioMart software suite, http://www.biomart.org}. The
  7307. package enables retrieval of large amounts of data in a uniform way without
  7308. the need to know the underlying database schemas or write complex SQL queries.
  7309. Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
  7310. Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
  7311. users direct access to a diverse set of data and enable a wide range of
  7312. powerful online queries from gene annotation to database mining.")
  7313. (license license:artistic2.0)))
  7314. (define-public r-biocparallel
  7315. (package
  7316. (name "r-biocparallel")
  7317. (version "1.16.5")
  7318. (source (origin
  7319. (method url-fetch)
  7320. (uri (bioconductor-uri "BiocParallel" version))
  7321. (sha256
  7322. (base32
  7323. "1164dk0fajb2vrkfpcjs11055qf1cs4vvbnq0aqdaaf2p4lyx41l"))))
  7324. (properties
  7325. `((upstream-name . "BiocParallel")))
  7326. (build-system r-build-system)
  7327. (propagated-inputs
  7328. `(("r-futile-logger" ,r-futile-logger)
  7329. ("r-snow" ,r-snow)
  7330. ("r-bh" ,r-bh)))
  7331. (home-page "https://bioconductor.org/packages/BiocParallel")
  7332. (synopsis "Bioconductor facilities for parallel evaluation")
  7333. (description
  7334. "This package provides modified versions and novel implementation of
  7335. functions for parallel evaluation, tailored to use with Bioconductor
  7336. objects.")
  7337. (license (list license:gpl2+ license:gpl3+))))
  7338. (define-public r-biostrings
  7339. (package
  7340. (name "r-biostrings")
  7341. (version "2.50.2")
  7342. (source (origin
  7343. (method url-fetch)
  7344. (uri (bioconductor-uri "Biostrings" version))
  7345. (sha256
  7346. (base32
  7347. "16cqqc8i6gb0jcz0lizfqqxsq7g0yb0ll2s9qzmb45brp07dg8f7"))))
  7348. (properties
  7349. `((upstream-name . "Biostrings")))
  7350. (build-system r-build-system)
  7351. (propagated-inputs
  7352. `(("r-biocgenerics" ,r-biocgenerics)
  7353. ("r-iranges" ,r-iranges)
  7354. ("r-s4vectors" ,r-s4vectors)
  7355. ("r-xvector" ,r-xvector)))
  7356. (home-page "https://bioconductor.org/packages/Biostrings")
  7357. (synopsis "String objects and algorithms for biological sequences")
  7358. (description
  7359. "This package provides memory efficient string containers, string
  7360. matching algorithms, and other utilities, for fast manipulation of large
  7361. biological sequences or sets of sequences.")
  7362. (license license:artistic2.0)))
  7363. (define-public r-rsamtools
  7364. (package
  7365. (name "r-rsamtools")
  7366. (version "1.34.0")
  7367. (source (origin
  7368. (method url-fetch)
  7369. (uri (bioconductor-uri "Rsamtools" version))
  7370. (sha256
  7371. (base32
  7372. "01v4bjhj2i126pwyk0v9lvmfp2ih495xsq903k3xa2z24bjxphbi"))))
  7373. (properties
  7374. `((upstream-name . "Rsamtools")))
  7375. (build-system r-build-system)
  7376. (arguments
  7377. `(#:phases
  7378. (modify-phases %standard-phases
  7379. (add-after 'unpack 'use-system-zlib
  7380. (lambda _
  7381. (substitute* "DESCRIPTION"
  7382. (("zlibbioc, ") ""))
  7383. (substitute* "NAMESPACE"
  7384. (("import\\(zlibbioc\\)") ""))
  7385. #t)))))
  7386. (inputs
  7387. `(("zlib" ,zlib)))
  7388. (propagated-inputs
  7389. `(("r-biocgenerics" ,r-biocgenerics)
  7390. ("r-biocparallel" ,r-biocparallel)
  7391. ("r-biostrings" ,r-biostrings)
  7392. ("r-bitops" ,r-bitops)
  7393. ("r-genomeinfodb" ,r-genomeinfodb)
  7394. ("r-genomicranges" ,r-genomicranges)
  7395. ("r-iranges" ,r-iranges)
  7396. ("r-s4vectors" ,r-s4vectors)
  7397. ("r-xvector" ,r-xvector)))
  7398. (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
  7399. (synopsis "Interface to samtools, bcftools, and tabix")
  7400. (description
  7401. "This package provides an interface to the 'samtools', 'bcftools', and
  7402. 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
  7403. binary variant call (BCF) and compressed indexed tab-delimited (tabix)
  7404. files.")
  7405. (license license:expat)))
  7406. (define-public r-delayedarray
  7407. (package
  7408. (name "r-delayedarray")
  7409. (version "0.8.0")
  7410. (source (origin
  7411. (method url-fetch)
  7412. (uri (bioconductor-uri "DelayedArray" version))
  7413. (sha256
  7414. (base32
  7415. "0cl5anqkjwvqx19snjhz0zj8cp8ibckiifl28h821h50g62nvb2f"))))
  7416. (properties
  7417. `((upstream-name . "DelayedArray")))
  7418. (build-system r-build-system)
  7419. (propagated-inputs
  7420. `(("r-biocgenerics" ,r-biocgenerics)
  7421. ("r-biocparallel" ,r-biocparallel)
  7422. ("r-s4vectors" ,r-s4vectors)
  7423. ("r-iranges" ,r-iranges)
  7424. ("r-matrixstats" ,r-matrixstats)))
  7425. (home-page "https://bioconductor.org/packages/DelayedArray")
  7426. (synopsis "Delayed operations on array-like objects")
  7427. (description
  7428. "Wrapping an array-like object (typically an on-disk object) in a
  7429. @code{DelayedArray} object allows one to perform common array operations on it
  7430. without loading the object in memory. In order to reduce memory usage and
  7431. optimize performance, operations on the object are either delayed or executed
  7432. using a block processing mechanism. Note that this also works on in-memory
  7433. array-like objects like @code{DataFrame} objects (typically with Rle columns),
  7434. @code{Matrix} objects, and ordinary arrays and data frames.")
  7435. (license license:artistic2.0)))
  7436. (define-public r-summarizedexperiment
  7437. (package
  7438. (name "r-summarizedexperiment")
  7439. (version "1.12.0")
  7440. (source (origin
  7441. (method url-fetch)
  7442. (uri (bioconductor-uri "SummarizedExperiment" version))
  7443. (sha256
  7444. (base32
  7445. "07805572xhpj5mfwq6kw1ha21wgalqvhh4ydvafyl1bnf3r20vps"))))
  7446. (properties
  7447. `((upstream-name . "SummarizedExperiment")))
  7448. (build-system r-build-system)
  7449. (propagated-inputs
  7450. `(("r-biobase" ,r-biobase)
  7451. ("r-biocgenerics" ,r-biocgenerics)
  7452. ("r-delayedarray" ,r-delayedarray)
  7453. ("r-genomeinfodb" ,r-genomeinfodb)
  7454. ("r-genomicranges" ,r-genomicranges)
  7455. ("r-iranges" ,r-iranges)
  7456. ("r-matrix" ,r-matrix)
  7457. ("r-s4vectors" ,r-s4vectors)))
  7458. (home-page "https://bioconductor.org/packages/SummarizedExperiment")
  7459. (synopsis "Container for representing genomic ranges by sample")
  7460. (description
  7461. "The SummarizedExperiment container contains one or more assays, each
  7462. represented by a matrix-like object of numeric or other mode. The rows
  7463. typically represent genomic ranges of interest and the columns represent
  7464. samples.")
  7465. (license license:artistic2.0)))
  7466. (define-public r-genomicalignments
  7467. (package
  7468. (name "r-genomicalignments")
  7469. (version "1.18.1")
  7470. (source (origin
  7471. (method url-fetch)
  7472. (uri (bioconductor-uri "GenomicAlignments" version))
  7473. (sha256
  7474. (base32
  7475. "1maslav2r34wjyzh2nlwa862in1ir7i5xk57nw2nlfh5gqy112jd"))))
  7476. (properties
  7477. `((upstream-name . "GenomicAlignments")))
  7478. (build-system r-build-system)
  7479. (propagated-inputs
  7480. `(("r-biocgenerics" ,r-biocgenerics)
  7481. ("r-biocparallel" ,r-biocparallel)
  7482. ("r-biostrings" ,r-biostrings)
  7483. ("r-genomeinfodb" ,r-genomeinfodb)
  7484. ("r-genomicranges" ,r-genomicranges)
  7485. ("r-iranges" ,r-iranges)
  7486. ("r-rsamtools" ,r-rsamtools)
  7487. ("r-s4vectors" ,r-s4vectors)
  7488. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  7489. (home-page "https://bioconductor.org/packages/GenomicAlignments")
  7490. (synopsis "Representation and manipulation of short genomic alignments")
  7491. (description
  7492. "This package provides efficient containers for storing and manipulating
  7493. short genomic alignments (typically obtained by aligning short reads to a
  7494. reference genome). This includes read counting, computing the coverage,
  7495. junction detection, and working with the nucleotide content of the
  7496. alignments.")
  7497. (license license:artistic2.0)))
  7498. (define-public r-rtracklayer
  7499. (package
  7500. (name "r-rtracklayer")
  7501. (version "1.42.1")
  7502. (source (origin
  7503. (method url-fetch)
  7504. (uri (bioconductor-uri "rtracklayer" version))
  7505. (sha256
  7506. (base32
  7507. "1ycmcxvgvszvjv75hlmg0i6pq8i7r8720vgmfayb905s9l6j82x6"))))
  7508. (build-system r-build-system)
  7509. (arguments
  7510. `(#:phases
  7511. (modify-phases %standard-phases
  7512. (add-after 'unpack 'use-system-zlib
  7513. (lambda _
  7514. (substitute* "DESCRIPTION"
  7515. ((" zlibbioc,") ""))
  7516. (substitute* "NAMESPACE"
  7517. (("import\\(zlibbioc\\)") ""))
  7518. #t)))))
  7519. (native-inputs
  7520. `(("pkg-config" ,pkg-config)))
  7521. (inputs
  7522. `(("zlib" ,zlib)))
  7523. (propagated-inputs
  7524. `(("r-biocgenerics" ,r-biocgenerics)
  7525. ("r-biostrings" ,r-biostrings)
  7526. ("r-genomeinfodb" ,r-genomeinfodb)
  7527. ("r-genomicalignments" ,r-genomicalignments)
  7528. ("r-genomicranges" ,r-genomicranges)
  7529. ("r-iranges" ,r-iranges)
  7530. ("r-rcurl" ,r-rcurl)
  7531. ("r-rsamtools" ,r-rsamtools)
  7532. ("r-s4vectors" ,r-s4vectors)
  7533. ("r-xml" ,r-xml)
  7534. ("r-xvector" ,r-xvector)))
  7535. (home-page "https://bioconductor.org/packages/rtracklayer")
  7536. (synopsis "R interface to genome browsers and their annotation tracks")
  7537. (description
  7538. "rtracklayer is an extensible framework for interacting with multiple
  7539. genome browsers (currently UCSC built-in) and manipulating annotation tracks
  7540. in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
  7541. built-in). The user may export/import tracks to/from the supported browsers,
  7542. as well as query and modify the browser state, such as the current viewport.")
  7543. (license license:artistic2.0)))
  7544. (define-public r-genomicfeatures
  7545. (package
  7546. (name "r-genomicfeatures")
  7547. (version "1.34.2")
  7548. (source (origin
  7549. (method url-fetch)
  7550. (uri (bioconductor-uri "GenomicFeatures" version))
  7551. (sha256
  7552. (base32
  7553. "0qs94b0ywrjyc9m1jykrbch3lb07576m508dikvx18vwn304mban"))))
  7554. (properties
  7555. `((upstream-name . "GenomicFeatures")))
  7556. (build-system r-build-system)
  7557. (propagated-inputs
  7558. `(("r-annotationdbi" ,r-annotationdbi)
  7559. ("r-biobase" ,r-biobase)
  7560. ("r-biocgenerics" ,r-biocgenerics)
  7561. ("r-biomart" ,r-biomart)
  7562. ("r-biostrings" ,r-biostrings)
  7563. ("r-dbi" ,r-dbi)
  7564. ("r-genomeinfodb" ,r-genomeinfodb)
  7565. ("r-genomicranges" ,r-genomicranges)
  7566. ("r-iranges" ,r-iranges)
  7567. ("r-rcurl" ,r-rcurl)
  7568. ("r-rsqlite" ,r-rsqlite)
  7569. ("r-rtracklayer" ,r-rtracklayer)
  7570. ("r-s4vectors" ,r-s4vectors)
  7571. ("r-xvector" ,r-xvector)))
  7572. (home-page "https://bioconductor.org/packages/GenomicFeatures")
  7573. (synopsis "Tools for working with transcript centric annotations")
  7574. (description
  7575. "This package provides a set of tools and methods for making and
  7576. manipulating transcript centric annotations. With these tools the user can
  7577. easily download the genomic locations of the transcripts, exons and cds of a
  7578. given organism, from either the UCSC Genome Browser or a BioMart
  7579. database (more sources will be supported in the future). This information is
  7580. then stored in a local database that keeps track of the relationship between
  7581. transcripts, exons, cds and genes. Flexible methods are provided for
  7582. extracting the desired features in a convenient format.")
  7583. (license license:artistic2.0)))
  7584. (define-public r-go-db
  7585. (package
  7586. (name "r-go-db")
  7587. (version "3.7.0")
  7588. (source (origin
  7589. (method url-fetch)
  7590. (uri (string-append "https://www.bioconductor.org/packages/"
  7591. "release/data/annotation/src/contrib/GO.db_"
  7592. version ".tar.gz"))
  7593. (sha256
  7594. (base32
  7595. "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
  7596. (properties
  7597. `((upstream-name . "GO.db")))
  7598. (build-system r-build-system)
  7599. (propagated-inputs
  7600. `(("r-annotationdbi" ,r-annotationdbi)))
  7601. (home-page "https://bioconductor.org/packages/GO.db")
  7602. (synopsis "Annotation maps describing the entire Gene Ontology")
  7603. (description
  7604. "The purpose of this GO.db annotation package is to provide detailed
  7605. information about the latest version of the Gene Ontologies.")
  7606. (license license:artistic2.0)))
  7607. (define-public r-topgo
  7608. (package
  7609. (name "r-topgo")
  7610. (version "2.34.0")
  7611. (source (origin
  7612. (method url-fetch)
  7613. (uri (bioconductor-uri "topGO" version))
  7614. (sha256
  7615. (base32
  7616. "1j1jcd16j564kr6qz28140fzmnh9xasi84v1c1fi98sqv30zq9bh"))))
  7617. (properties
  7618. `((upstream-name . "topGO")))
  7619. (build-system r-build-system)
  7620. (propagated-inputs
  7621. `(("r-annotationdbi" ,r-annotationdbi)
  7622. ("r-dbi" ,r-dbi)
  7623. ("r-biobase" ,r-biobase)
  7624. ("r-biocgenerics" ,r-biocgenerics)
  7625. ("r-go-db" ,r-go-db)
  7626. ("r-graph" ,r-graph)
  7627. ("r-lattice" ,r-lattice)
  7628. ("r-matrixstats" ,r-matrixstats)
  7629. ("r-sparsem" ,r-sparsem)))
  7630. (home-page "https://bioconductor.org/packages/topGO")
  7631. (synopsis "Enrichment analysis for gene ontology")
  7632. (description
  7633. "The topGO package provides tools for testing @dfn{gene ontology} (GO)
  7634. terms while accounting for the topology of the GO graph. Different test
  7635. statistics and different methods for eliminating local similarities and
  7636. dependencies between GO terms can be implemented and applied.")
  7637. ;; Any version of the LGPL applies.
  7638. (license license:lgpl2.1+)))
  7639. (define-public r-bsgenome
  7640. (package
  7641. (name "r-bsgenome")
  7642. (version "1.50.0")
  7643. (source (origin
  7644. (method url-fetch)
  7645. (uri (bioconductor-uri "BSgenome" version))
  7646. (sha256
  7647. (base32
  7648. "07z4zxx0khrc86qqvc7vxww8df9fh6pyks9ajxkc9gdqr5nn79j7"))))
  7649. (properties
  7650. `((upstream-name . "BSgenome")))
  7651. (build-system r-build-system)
  7652. (propagated-inputs
  7653. `(("r-biocgenerics" ,r-biocgenerics)
  7654. ("r-biostrings" ,r-biostrings)
  7655. ("r-genomeinfodb" ,r-genomeinfodb)
  7656. ("r-genomicranges" ,r-genomicranges)
  7657. ("r-iranges" ,r-iranges)
  7658. ("r-rsamtools" ,r-rsamtools)
  7659. ("r-rtracklayer" ,r-rtracklayer)
  7660. ("r-s4vectors" ,r-s4vectors)
  7661. ("r-xvector" ,r-xvector)))
  7662. (home-page "https://bioconductor.org/packages/BSgenome")
  7663. (synopsis "Infrastructure for Biostrings-based genome data packages")
  7664. (description
  7665. "This package provides infrastructure shared by all Biostrings-based
  7666. genome data packages and support for efficient SNP representation.")
  7667. (license license:artistic2.0)))
  7668. (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
  7669. (package
  7670. (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
  7671. (version "0.99.1")
  7672. (source (origin
  7673. (method url-fetch)
  7674. ;; We cannot use bioconductor-uri here because this tarball is
  7675. ;; located under "data/annotation/" instead of "bioc/".
  7676. (uri (string-append "https://www.bioconductor.org/packages/"
  7677. "release/data/annotation/src/contrib/"
  7678. "BSgenome.Hsapiens.1000genomes.hs37d5_"
  7679. version ".tar.gz"))
  7680. (sha256
  7681. (base32
  7682. "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
  7683. (properties
  7684. `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
  7685. (build-system r-build-system)
  7686. ;; As this package provides little more than a very large data file it
  7687. ;; doesn't make sense to build substitutes.
  7688. (arguments `(#:substitutable? #f))
  7689. (propagated-inputs
  7690. `(("r-bsgenome" ,r-bsgenome)))
  7691. (home-page
  7692. "https://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
  7693. (synopsis "Full genome sequences for Homo sapiens")
  7694. (description
  7695. "This package provides full genome sequences for Homo sapiens from
  7696. 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
  7697. (license license:artistic2.0)))
  7698. (define-public r-impute
  7699. (package
  7700. (name "r-impute")
  7701. (version "1.56.0")
  7702. (source (origin
  7703. (method url-fetch)
  7704. (uri (bioconductor-uri "impute" version))
  7705. (sha256
  7706. (base32
  7707. "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
  7708. (inputs
  7709. `(("gfortran" ,gfortran)))
  7710. (build-system r-build-system)
  7711. (home-page "https://bioconductor.org/packages/impute")
  7712. (synopsis "Imputation for microarray data")
  7713. (description
  7714. "This package provides a function to impute missing gene expression
  7715. microarray data, using nearest neighbor averaging.")
  7716. (license license:gpl2+)))
  7717. (define-public r-seqpattern
  7718. (package
  7719. (name "r-seqpattern")
  7720. (version "1.14.0")
  7721. (source (origin
  7722. (method url-fetch)
  7723. (uri (bioconductor-uri "seqPattern" version))
  7724. (sha256
  7725. (base32
  7726. "0di83qi83mrlw7i12khsq55d03hlazcywaa9m9pki1sfhafpq733"))))
  7727. (properties
  7728. `((upstream-name . "seqPattern")))
  7729. (build-system r-build-system)
  7730. (propagated-inputs
  7731. `(("r-biostrings" ,r-biostrings)
  7732. ("r-genomicranges" ,r-genomicranges)
  7733. ("r-iranges" ,r-iranges)
  7734. ("r-kernsmooth" ,r-kernsmooth)
  7735. ("r-plotrix" ,r-plotrix)))
  7736. (home-page "https://bioconductor.org/packages/seqPattern")
  7737. (synopsis "Visualising oligonucleotide patterns and motif occurrences")
  7738. (description
  7739. "This package provides tools to visualize oligonucleotide patterns and
  7740. sequence motif occurrences across a large set of sequences centred at a common
  7741. reference point and sorted by a user defined feature.")
  7742. (license license:gpl3+)))
  7743. (define-public r-genomation
  7744. (package
  7745. (name "r-genomation")
  7746. (version "1.14.0")
  7747. (source (origin
  7748. (method url-fetch)
  7749. (uri (bioconductor-uri "genomation" version))
  7750. (sha256
  7751. (base32
  7752. "0g0v4alfpqlinqinjnyzl3mrjnpbdx9ri34mcaiqbvbvg8ic8wvg"))))
  7753. (build-system r-build-system)
  7754. (propagated-inputs
  7755. `(("r-biostrings" ,r-biostrings)
  7756. ("r-bsgenome" ,r-bsgenome)
  7757. ("r-data-table" ,r-data-table)
  7758. ("r-genomeinfodb" ,r-genomeinfodb)
  7759. ("r-genomicalignments" ,r-genomicalignments)
  7760. ("r-genomicranges" ,r-genomicranges)
  7761. ("r-ggplot2" ,r-ggplot2)
  7762. ("r-gridbase" ,r-gridbase)
  7763. ("r-impute" ,r-impute)
  7764. ("r-iranges" ,r-iranges)
  7765. ("r-matrixstats" ,r-matrixstats)
  7766. ("r-plotrix" ,r-plotrix)
  7767. ("r-plyr" ,r-plyr)
  7768. ("r-rcpp" ,r-rcpp)
  7769. ("r-readr" ,r-readr)
  7770. ("r-reshape2" ,r-reshape2)
  7771. ("r-rsamtools" ,r-rsamtools)
  7772. ("r-rtracklayer" ,r-rtracklayer)
  7773. ("r-runit" ,r-runit)
  7774. ("r-s4vectors" ,r-s4vectors)
  7775. ("r-seqpattern" ,r-seqpattern)))
  7776. (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
  7777. (synopsis "Summary, annotation and visualization of genomic data")
  7778. (description
  7779. "This package provides a package for summary and annotation of genomic
  7780. intervals. Users can visualize and quantify genomic intervals over
  7781. pre-defined functional regions, such as promoters, exons, introns, etc. The
  7782. genomic intervals represent regions with a defined chromosome position, which
  7783. may be associated with a score, such as aligned reads from HT-seq experiments,
  7784. TF binding sites, methylation scores, etc. The package can use any tabular
  7785. genomic feature data as long as it has minimal information on the locations of
  7786. genomic intervals. In addition, it can use BAM or BigWig files as input.")
  7787. (license license:artistic2.0)))
  7788. (define-public r-genomationdata
  7789. (package
  7790. (name "r-genomationdata")
  7791. (version "1.14.0")
  7792. (source (origin
  7793. (method url-fetch)
  7794. ;; We cannot use bioconductor-uri here because this tarball is
  7795. ;; located under "data/annotation/" instead of "bioc/".
  7796. (uri (string-append "https://bioconductor.org/packages/"
  7797. "release/data/experiment/src/contrib/"
  7798. "genomationData_" version ".tar.gz"))
  7799. (sha256
  7800. (base32
  7801. "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
  7802. (build-system r-build-system)
  7803. ;; As this package provides little more than large data files, it doesn't
  7804. ;; make sense to build substitutes.
  7805. (arguments `(#:substitutable? #f))
  7806. (native-inputs
  7807. `(("r-knitr" ,r-knitr)))
  7808. (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
  7809. (synopsis "Experimental data for use with the genomation package")
  7810. (description
  7811. "This package contains experimental genetic data for use with the
  7812. genomation package. Included are Chip Seq, Methylation and Cage data,
  7813. downloaded from Encode.")
  7814. (license license:gpl3+)))
  7815. (define-public r-org-hs-eg-db
  7816. (package
  7817. (name "r-org-hs-eg-db")
  7818. (version "3.7.0")
  7819. (source (origin
  7820. (method url-fetch)
  7821. ;; We cannot use bioconductor-uri here because this tarball is
  7822. ;; located under "data/annotation/" instead of "bioc/".
  7823. (uri (string-append "https://www.bioconductor.org/packages/"
  7824. "release/data/annotation/src/contrib/"
  7825. "org.Hs.eg.db_" version ".tar.gz"))
  7826. (sha256
  7827. (base32
  7828. "1qxz9l80yg3qdqszs6dsscp7lrpfi1bgd0pxh9j7q34vprzwhdim"))))
  7829. (properties
  7830. `((upstream-name . "org.Hs.eg.db")))
  7831. (build-system r-build-system)
  7832. (propagated-inputs
  7833. `(("r-annotationdbi" ,r-annotationdbi)))
  7834. (home-page "https://www.bioconductor.org/packages/org.Hs.eg.db/")
  7835. (synopsis "Genome wide annotation for Human")
  7836. (description
  7837. "This package contains genome-wide annotations for Human, primarily based
  7838. on mapping using Entrez Gene identifiers.")
  7839. (license license:artistic2.0)))
  7840. (define-public r-org-ce-eg-db
  7841. (package
  7842. (name "r-org-ce-eg-db")
  7843. (version "3.7.0")
  7844. (source (origin
  7845. (method url-fetch)
  7846. ;; We cannot use bioconductor-uri here because this tarball is
  7847. ;; located under "data/annotation/" instead of "bioc/".
  7848. (uri (string-append "https://www.bioconductor.org/packages/"
  7849. "release/data/annotation/src/contrib/"
  7850. "org.Ce.eg.db_" version ".tar.gz"))
  7851. (sha256
  7852. (base32
  7853. "1w5br1ss4ha8wv4v2saj7cmbjc2jw0dyj2f2y269l078z31wcnaz"))))
  7854. (properties
  7855. `((upstream-name . "org.Ce.eg.db")))
  7856. (build-system r-build-system)
  7857. (propagated-inputs
  7858. `(("r-annotationdbi" ,r-annotationdbi)))
  7859. (home-page "https://www.bioconductor.org/packages/org.Ce.eg.db/")
  7860. (synopsis "Genome wide annotation for Worm")
  7861. (description
  7862. "This package provides mappings from Entrez gene identifiers to various
  7863. annotations for the genome of the model worm Caenorhabditis elegans.")
  7864. (license license:artistic2.0)))
  7865. (define-public r-org-dm-eg-db
  7866. (package
  7867. (name "r-org-dm-eg-db")
  7868. (version "3.7.0")
  7869. (source (origin
  7870. (method url-fetch)
  7871. ;; We cannot use bioconductor-uri here because this tarball is
  7872. ;; located under "data/annotation/" instead of "bioc/".
  7873. (uri (string-append "https://www.bioconductor.org/packages/"
  7874. "release/data/annotation/src/contrib/"
  7875. "org.Dm.eg.db_" version ".tar.gz"))
  7876. (sha256
  7877. (base32
  7878. "1pqjrzlyg72bjpy8zsxvaglc7jsv176bnyi87xdajmkvsgxpm7b3"))))
  7879. (properties
  7880. `((upstream-name . "org.Dm.eg.db")))
  7881. (build-system r-build-system)
  7882. (propagated-inputs
  7883. `(("r-annotationdbi" ,r-annotationdbi)))
  7884. (home-page "https://www.bioconductor.org/packages/org.Dm.eg.db/")
  7885. (synopsis "Genome wide annotation for Fly")
  7886. (description
  7887. "This package provides mappings from Entrez gene identifiers to various
  7888. annotations for the genome of the model fruit fly Drosophila melanogaster.")
  7889. (license license:artistic2.0)))
  7890. (define-public r-org-mm-eg-db
  7891. (package
  7892. (name "r-org-mm-eg-db")
  7893. (version "3.7.0")
  7894. (source (origin
  7895. (method url-fetch)
  7896. ;; We cannot use bioconductor-uri here because this tarball is
  7897. ;; located under "data/annotation/" instead of "bioc/".
  7898. (uri (string-append "https://www.bioconductor.org/packages/"
  7899. "release/data/annotation/src/contrib/"
  7900. "org.Mm.eg.db_" version ".tar.gz"))
  7901. (sha256
  7902. (base32
  7903. "1i3nvrd3wjigf1rmgxq1p5xxc3p8v02h5gwi62s30rkrsyjjfjxx"))))
  7904. (properties
  7905. `((upstream-name . "org.Mm.eg.db")))
  7906. (build-system r-build-system)
  7907. (propagated-inputs
  7908. `(("r-annotationdbi" ,r-annotationdbi)))
  7909. (home-page "https://www.bioconductor.org/packages/org.Mm.eg.db/")
  7910. (synopsis "Genome wide annotation for Mouse")
  7911. (description
  7912. "This package provides mappings from Entrez gene identifiers to various
  7913. annotations for the genome of the model mouse Mus musculus.")
  7914. (license license:artistic2.0)))
  7915. (define-public r-seqlogo
  7916. (package
  7917. (name "r-seqlogo")
  7918. (version "1.48.0")
  7919. (source
  7920. (origin
  7921. (method url-fetch)
  7922. (uri (bioconductor-uri "seqLogo" version))
  7923. (sha256
  7924. (base32
  7925. "022vr9ydwcivs7rw7kwj73gfk5gc7ckwa1q66vhd4kw9ylh70v68"))))
  7926. (properties `((upstream-name . "seqLogo")))
  7927. (build-system r-build-system)
  7928. (home-page "https://bioconductor.org/packages/seqLogo")
  7929. (synopsis "Sequence logos for DNA sequence alignments")
  7930. (description
  7931. "seqLogo takes the position weight matrix of a DNA sequence motif and
  7932. plots the corresponding sequence logo as introduced by Schneider and
  7933. Stephens (1990).")
  7934. (license license:lgpl2.0+)))
  7935. (define-public r-bsgenome-hsapiens-ucsc-hg19
  7936. (package
  7937. (name "r-bsgenome-hsapiens-ucsc-hg19")
  7938. (version "1.4.0")
  7939. (source (origin
  7940. (method url-fetch)
  7941. ;; We cannot use bioconductor-uri here because this tarball is
  7942. ;; located under "data/annotation/" instead of "bioc/".
  7943. (uri (string-append "https://www.bioconductor.org/packages/"
  7944. "release/data/annotation/src/contrib/"
  7945. "BSgenome.Hsapiens.UCSC.hg19_"
  7946. version ".tar.gz"))
  7947. (sha256
  7948. (base32
  7949. "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
  7950. (properties
  7951. `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
  7952. (build-system r-build-system)
  7953. ;; As this package provides little more than a very large data file it
  7954. ;; doesn't make sense to build substitutes.
  7955. (arguments `(#:substitutable? #f))
  7956. (propagated-inputs
  7957. `(("r-bsgenome" ,r-bsgenome)))
  7958. (home-page
  7959. "https://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
  7960. (synopsis "Full genome sequences for Homo sapiens")
  7961. (description
  7962. "This package provides full genome sequences for Homo sapiens as provided
  7963. by UCSC (hg19, February 2009) and stored in Biostrings objects.")
  7964. (license license:artistic2.0)))
  7965. (define-public r-bsgenome-mmusculus-ucsc-mm9
  7966. (package
  7967. (name "r-bsgenome-mmusculus-ucsc-mm9")
  7968. (version "1.4.0")
  7969. (source (origin
  7970. (method url-fetch)
  7971. ;; We cannot use bioconductor-uri here because this tarball is
  7972. ;; located under "data/annotation/" instead of "bioc/".
  7973. (uri (string-append "https://www.bioconductor.org/packages/"
  7974. "release/data/annotation/src/contrib/"
  7975. "BSgenome.Mmusculus.UCSC.mm9_"
  7976. version ".tar.gz"))
  7977. (sha256
  7978. (base32
  7979. "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
  7980. (properties
  7981. `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
  7982. (build-system r-build-system)
  7983. ;; As this package provides little more than a very large data file it
  7984. ;; doesn't make sense to build substitutes.
  7985. (arguments `(#:substitutable? #f))
  7986. (propagated-inputs
  7987. `(("r-bsgenome" ,r-bsgenome)))
  7988. (home-page
  7989. "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
  7990. (synopsis "Full genome sequences for Mouse")
  7991. (description
  7992. "This package provides full genome sequences for Mus musculus (Mouse) as
  7993. provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
  7994. (license license:artistic2.0)))
  7995. (define-public r-bsgenome-mmusculus-ucsc-mm10
  7996. (package
  7997. (name "r-bsgenome-mmusculus-ucsc-mm10")
  7998. (version "1.4.0")
  7999. (source (origin
  8000. (method url-fetch)
  8001. ;; We cannot use bioconductor-uri here because this tarball is
  8002. ;; located under "data/annotation/" instead of "bioc/".
  8003. (uri (string-append "https://www.bioconductor.org/packages/"
  8004. "release/data/annotation/src/contrib/"
  8005. "BSgenome.Mmusculus.UCSC.mm10_"
  8006. version ".tar.gz"))
  8007. (sha256
  8008. (base32
  8009. "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
  8010. (properties
  8011. `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
  8012. (build-system r-build-system)
  8013. ;; As this package provides little more than a very large data file it
  8014. ;; doesn't make sense to build substitutes.
  8015. (arguments `(#:substitutable? #f))
  8016. (propagated-inputs
  8017. `(("r-bsgenome" ,r-bsgenome)))
  8018. (home-page
  8019. "https://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
  8020. (synopsis "Full genome sequences for Mouse")
  8021. (description
  8022. "This package provides full genome sequences for Mus
  8023. musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
  8024. in Biostrings objects.")
  8025. (license license:artistic2.0)))
  8026. (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
  8027. (package
  8028. (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
  8029. (version "3.4.4")
  8030. (source (origin
  8031. (method url-fetch)
  8032. ;; We cannot use bioconductor-uri here because this tarball is
  8033. ;; located under "data/annotation/" instead of "bioc/".
  8034. (uri (string-append "https://www.bioconductor.org/packages/"
  8035. "release/data/annotation/src/contrib/"
  8036. "TxDb.Mmusculus.UCSC.mm10.knownGene_"
  8037. version ".tar.gz"))
  8038. (sha256
  8039. (base32
  8040. "01lgxc1fx5nhlpbwjd5zqghkkbmh6axd98ikx4b0spv0jdg6gf39"))))
  8041. (properties
  8042. `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
  8043. (build-system r-build-system)
  8044. ;; As this package provides little more than a very large data file it
  8045. ;; doesn't make sense to build substitutes.
  8046. (arguments `(#:substitutable? #f))
  8047. (propagated-inputs
  8048. `(("r-bsgenome" ,r-bsgenome)
  8049. ("r-genomicfeatures" ,r-genomicfeatures)
  8050. ("r-annotationdbi" ,r-annotationdbi)))
  8051. (home-page
  8052. "https://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
  8053. (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
  8054. (description
  8055. "This package loads a TxDb object, which is an R interface to
  8056. prefabricated databases contained in this package. This package provides
  8057. the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
  8058. based on the knownGene track.")
  8059. (license license:artistic2.0)))
  8060. (define-public r-bsgenome-celegans-ucsc-ce6
  8061. (package
  8062. (name "r-bsgenome-celegans-ucsc-ce6")
  8063. (version "1.4.0")
  8064. (source (origin
  8065. (method url-fetch)
  8066. ;; We cannot use bioconductor-uri here because this tarball is
  8067. ;; located under "data/annotation/" instead of "bioc/".
  8068. (uri (string-append "https://www.bioconductor.org/packages/"
  8069. "release/data/annotation/src/contrib/"
  8070. "BSgenome.Celegans.UCSC.ce6_"
  8071. version ".tar.gz"))
  8072. (sha256
  8073. (base32
  8074. "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
  8075. (properties
  8076. `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
  8077. (build-system r-build-system)
  8078. ;; As this package provides little more than a very large data file it
  8079. ;; doesn't make sense to build substitutes.
  8080. (arguments `(#:substitutable? #f))
  8081. (propagated-inputs
  8082. `(("r-bsgenome" ,r-bsgenome)))
  8083. (home-page
  8084. "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
  8085. (synopsis "Full genome sequences for Worm")
  8086. (description
  8087. "This package provides full genome sequences for Caenorhabditis
  8088. elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
  8089. objects.")
  8090. (license license:artistic2.0)))
  8091. (define-public r-bsgenome-celegans-ucsc-ce10
  8092. (package
  8093. (name "r-bsgenome-celegans-ucsc-ce10")
  8094. (version "1.4.0")
  8095. (source (origin
  8096. (method url-fetch)
  8097. ;; We cannot use bioconductor-uri here because this tarball is
  8098. ;; located under "data/annotation/" instead of "bioc/".
  8099. (uri (string-append "https://www.bioconductor.org/packages/"
  8100. "release/data/annotation/src/contrib/"
  8101. "BSgenome.Celegans.UCSC.ce10_"
  8102. version ".tar.gz"))
  8103. (sha256
  8104. (base32
  8105. "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
  8106. (properties
  8107. `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
  8108. (build-system r-build-system)
  8109. ;; As this package provides little more than a very large data file it
  8110. ;; doesn't make sense to build substitutes.
  8111. (arguments `(#:substitutable? #f))
  8112. (propagated-inputs
  8113. `(("r-bsgenome" ,r-bsgenome)))
  8114. (home-page
  8115. "https://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
  8116. (synopsis "Full genome sequences for Worm")
  8117. (description
  8118. "This package provides full genome sequences for Caenorhabditis
  8119. elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
  8120. objects.")
  8121. (license license:artistic2.0)))
  8122. (define-public r-bsgenome-dmelanogaster-ucsc-dm3
  8123. (package
  8124. (name "r-bsgenome-dmelanogaster-ucsc-dm3")
  8125. (version "1.4.0")
  8126. (source (origin
  8127. (method url-fetch)
  8128. ;; We cannot use bioconductor-uri here because this tarball is
  8129. ;; located under "data/annotation/" instead of "bioc/".
  8130. (uri (string-append "https://www.bioconductor.org/packages/"
  8131. "release/data/annotation/src/contrib/"
  8132. "BSgenome.Dmelanogaster.UCSC.dm3_"
  8133. version ".tar.gz"))
  8134. (sha256
  8135. (base32
  8136. "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
  8137. (properties
  8138. `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
  8139. (build-system r-build-system)
  8140. ;; As this package provides little more than a very large data file it
  8141. ;; doesn't make sense to build substitutes.
  8142. (arguments `(#:substitutable? #f))
  8143. (propagated-inputs
  8144. `(("r-bsgenome" ,r-bsgenome)))
  8145. (home-page
  8146. "https://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
  8147. (synopsis "Full genome sequences for Fly")
  8148. (description
  8149. "This package provides full genome sequences for Drosophila
  8150. melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
  8151. Biostrings objects.")
  8152. (license license:artistic2.0)))
  8153. (define-public r-motifrg
  8154. (package
  8155. (name "r-motifrg")
  8156. (version "1.26.0")
  8157. (source
  8158. (origin
  8159. (method url-fetch)
  8160. (uri (bioconductor-uri "motifRG" version))
  8161. (sha256
  8162. (base32
  8163. "1wxww6i0jgyapqclcwy0zzf9kqjvrvylr89z7yhg1izi7jnw2fka"))))
  8164. (properties `((upstream-name . "motifRG")))
  8165. (build-system r-build-system)
  8166. (propagated-inputs
  8167. `(("r-biostrings" ,r-biostrings)
  8168. ("r-bsgenome" ,r-bsgenome)
  8169. ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
  8170. ("r-iranges" ,r-iranges)
  8171. ("r-seqlogo" ,r-seqlogo)
  8172. ("r-xvector" ,r-xvector)))
  8173. (home-page "https://bioconductor.org/packages/motifRG")
  8174. (synopsis "Discover motifs in high throughput sequencing data")
  8175. (description
  8176. "This package provides tools for discriminative motif discovery in high
  8177. throughput genetic sequencing data sets using regression methods.")
  8178. (license license:artistic2.0)))
  8179. (define-public r-qtl
  8180. (package
  8181. (name "r-qtl")
  8182. (version "1.44-9")
  8183. (source
  8184. (origin
  8185. (method url-fetch)
  8186. (uri (string-append "mirror://cran/src/contrib/qtl_"
  8187. version ".tar.gz"))
  8188. (sha256
  8189. (base32
  8190. "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
  8191. (build-system r-build-system)
  8192. (home-page "http://rqtl.org/")
  8193. (synopsis "R package for analyzing QTL experiments in genetics")
  8194. (description "R/qtl is an extension library for the R statistics
  8195. system. It is used to analyze experimental crosses for identifying
  8196. genes contributing to variation in quantitative traits (so-called
  8197. quantitative trait loci, QTLs).
  8198. Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
  8199. identify genotyping errors, and to perform single-QTL and two-QTL,
  8200. two-dimensional genome scans.")
  8201. (license license:gpl3)))
  8202. (define-public r-zlibbioc
  8203. (package
  8204. (name "r-zlibbioc")
  8205. (version "1.28.0")
  8206. (source (origin
  8207. (method url-fetch)
  8208. (uri (bioconductor-uri "zlibbioc" version))
  8209. (sha256
  8210. (base32
  8211. "0bjvzy24kab7ank02cc1qk2ikcz4dllgf66wpsdl0d3zp4gn3l2h"))))
  8212. (properties
  8213. `((upstream-name . "zlibbioc")))
  8214. (build-system r-build-system)
  8215. (home-page "https://bioconductor.org/packages/zlibbioc")
  8216. (synopsis "Provider for zlib-1.2.5 to R packages")
  8217. (description "This package uses the source code of zlib-1.2.5 to create
  8218. libraries for systems that do not have these available via other means.")
  8219. (license license:artistic2.0)))
  8220. (define-public r-r4rna
  8221. (package
  8222. (name "r-r4rna")
  8223. (version "0.1.4")
  8224. (source
  8225. (origin
  8226. (method url-fetch)
  8227. (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
  8228. version ".tar.gz"))
  8229. (sha256
  8230. (base32
  8231. "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
  8232. (build-system r-build-system)
  8233. (propagated-inputs
  8234. `(("r-optparse" ,r-optparse)
  8235. ("r-rcolorbrewer" ,r-rcolorbrewer)))
  8236. (home-page "http://www.e-rna.org/r-chie/index.cgi")
  8237. (synopsis "Analysis framework for RNA secondary structure")
  8238. (description
  8239. "The R4RNA package aims to be a general framework for the analysis of RNA
  8240. secondary structure and comparative analysis in R.")
  8241. (license license:gpl3+)))
  8242. (define-public r-rhtslib
  8243. (package
  8244. (name "r-rhtslib")
  8245. (version "1.14.0")
  8246. (source
  8247. (origin
  8248. (method url-fetch)
  8249. (uri (bioconductor-uri "Rhtslib" version))
  8250. (sha256
  8251. (base32
  8252. "1h4q54f8za3aaxgy186zf2165sar5c3cgxkk44lq5hzx5pxkl5wn"))))
  8253. (properties `((upstream-name . "Rhtslib")))
  8254. (build-system r-build-system)
  8255. (propagated-inputs
  8256. `(("r-zlibbioc" ,r-zlibbioc)))
  8257. (inputs
  8258. `(("zlib" ,zlib)))
  8259. (native-inputs
  8260. `(("pkg-config" ,pkg-config)))
  8261. (home-page "https://github.com/nhayden/Rhtslib")
  8262. (synopsis "High-throughput sequencing library as an R package")
  8263. (description
  8264. "This package provides the HTSlib C library for high-throughput
  8265. nucleotide sequence analysis. The package is primarily useful to developers
  8266. of other R packages who wish to make use of HTSlib.")
  8267. (license license:lgpl2.0+)))
  8268. (define-public r-bamsignals
  8269. (package
  8270. (name "r-bamsignals")
  8271. (version "1.14.0")
  8272. (source
  8273. (origin
  8274. (method url-fetch)
  8275. (uri (bioconductor-uri "bamsignals" version))
  8276. (sha256
  8277. (base32
  8278. "19irfx1y1izf903vq59wxsdbf88g143zy9l89gxqawh7jfxds8w8"))))
  8279. (build-system r-build-system)
  8280. (propagated-inputs
  8281. `(("r-biocgenerics" ,r-biocgenerics)
  8282. ("r-genomicranges" ,r-genomicranges)
  8283. ("r-iranges" ,r-iranges)
  8284. ("r-rcpp" ,r-rcpp)
  8285. ("r-rhtslib" ,r-rhtslib)
  8286. ("r-zlibbioc" ,r-zlibbioc)))
  8287. (inputs
  8288. `(("zlib" ,zlib)))
  8289. (home-page "https://bioconductor.org/packages/bamsignals")
  8290. (synopsis "Extract read count signals from bam files")
  8291. (description
  8292. "This package allows to efficiently obtain count vectors from indexed bam
  8293. files. It counts the number of nucleotide sequence reads in given genomic
  8294. ranges and it computes reads profiles and coverage profiles. It also handles
  8295. paired-end data.")
  8296. (license license:gpl2+)))
  8297. (define-public r-rcas
  8298. (package
  8299. (name "r-rcas")
  8300. (version "1.8.0")
  8301. (source (origin
  8302. (method url-fetch)
  8303. (uri (bioconductor-uri "RCAS" version))
  8304. (sha256
  8305. (base32
  8306. "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
  8307. (build-system r-build-system)
  8308. (propagated-inputs
  8309. `(("r-annotationdbi" ,r-annotationdbi)
  8310. ("r-biocgenerics" ,r-biocgenerics)
  8311. ("r-biomart" ,r-biomart)
  8312. ("r-biostrings" ,r-biostrings)
  8313. ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
  8314. ("r-cowplot" ,r-cowplot)
  8315. ("r-data-table" ,r-data-table)
  8316. ("r-dbi" ,r-dbi)
  8317. ("r-dt" ,r-dt)
  8318. ("r-genomation" ,r-genomation)
  8319. ("r-genomeinfodb" ,r-genomeinfodb)
  8320. ("r-genomicfeatures" ,r-genomicfeatures)
  8321. ("r-genomicranges" ,r-genomicranges)
  8322. ("r-ggplot2" ,r-ggplot2)
  8323. ("r-ggseqlogo" ,r-ggseqlogo)
  8324. ("r-knitr" ,r-knitr)
  8325. ("r-motifrg" ,r-motifrg)
  8326. ("r-org-hs-eg-db" ,r-org-hs-eg-db)
  8327. ("r-pbapply" ,r-pbapply)
  8328. ("r-pheatmap" ,r-pheatmap)
  8329. ("r-plotly" ,r-plotly)
  8330. ("r-plotrix" ,r-plotrix)
  8331. ("r-proxy" ,r-proxy)
  8332. ("r-rsqlite" ,r-rsqlite)
  8333. ("r-rtracklayer" ,r-rtracklayer)
  8334. ("r-rmarkdown" ,r-rmarkdown)
  8335. ("r-s4vectors" ,r-s4vectors)
  8336. ("r-topgo" ,r-topgo)))
  8337. (synopsis "RNA-centric annotation system")
  8338. (description
  8339. "RCAS aims to be a standalone RNA-centric annotation system that provides
  8340. intuitive reports and publication-ready graphics. This package provides the R
  8341. library implementing most of the pipeline's features.")
  8342. (home-page "https://github.com/BIMSBbioinfo/RCAS")
  8343. (license license:artistic2.0)))
  8344. (define-public rcas-web
  8345. (package
  8346. (name "rcas-web")
  8347. (version "0.1.0")
  8348. (source
  8349. (origin
  8350. (method url-fetch)
  8351. (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
  8352. "releases/download/v" version
  8353. "/rcas-web-" version ".tar.gz"))
  8354. (sha256
  8355. (base32
  8356. "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
  8357. (build-system gnu-build-system)
  8358. (arguments
  8359. `(#:phases
  8360. (modify-phases %standard-phases
  8361. (add-after 'install 'wrap-executable
  8362. (lambda* (#:key inputs outputs #:allow-other-keys)
  8363. (let* ((out (assoc-ref outputs "out"))
  8364. (json (assoc-ref inputs "guile-json"))
  8365. (redis (assoc-ref inputs "guile-redis"))
  8366. (path (string-append
  8367. json "/share/guile/site/2.2:"
  8368. redis "/share/guile/site/2.2")))
  8369. (wrap-program (string-append out "/bin/rcas-web")
  8370. `("GUILE_LOAD_PATH" ":" = (,path))
  8371. `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
  8372. `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
  8373. #t)))))
  8374. (inputs
  8375. `(("r-minimal" ,r-minimal)
  8376. ("r-rcas" ,r-rcas)
  8377. ("guile-next" ,guile-2.2)
  8378. ("guile-json" ,guile-json)
  8379. ("guile-redis" ,guile-redis)))
  8380. (native-inputs
  8381. `(("pkg-config" ,pkg-config)))
  8382. (home-page "https://github.com/BIMSBbioinfo/rcas-web")
  8383. (synopsis "Web interface for RNA-centric annotation system (RCAS)")
  8384. (description "This package provides a simple web interface for the
  8385. @dfn{RNA-centric annotation system} (RCAS).")
  8386. (license license:agpl3+)))
  8387. (define-public r-mutationalpatterns
  8388. (package
  8389. (name "r-mutationalpatterns")
  8390. (version "1.8.0")
  8391. (source
  8392. (origin
  8393. (method url-fetch)
  8394. (uri (bioconductor-uri "MutationalPatterns" version))
  8395. (sha256
  8396. (base32
  8397. "0w9lg1zs106h6rqvy8mhikq6q6q9syw6c1prcxr38ssh85rcih12"))))
  8398. (build-system r-build-system)
  8399. (propagated-inputs
  8400. `(("r-biocgenerics" ,r-biocgenerics)
  8401. ("r-biostrings" ,r-biostrings)
  8402. ;; These two packages are suggested packages
  8403. ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
  8404. ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
  8405. ("r-genomicranges" ,r-genomicranges)
  8406. ("r-genomeinfodb" ,r-genomeinfodb)
  8407. ("r-ggplot2" ,r-ggplot2)
  8408. ("r-iranges" ,r-iranges)
  8409. ("r-nmf" ,r-nmf)
  8410. ("r-plyr" ,r-plyr)
  8411. ("r-pracma" ,r-pracma)
  8412. ("r-reshape2" ,r-reshape2)
  8413. ("r-cowplot" ,r-cowplot)
  8414. ("r-ggdendro" ,r-ggdendro)
  8415. ("r-s4vectors" ,r-s4vectors)
  8416. ("r-summarizedexperiment" ,r-summarizedexperiment)
  8417. ("r-variantannotation" ,r-variantannotation)))
  8418. (home-page "https://bioconductor.org/packages/MutationalPatterns/")
  8419. (synopsis "Extract and visualize mutational patterns in genomic data")
  8420. (description "This package provides an extensive toolset for the
  8421. characterization and visualization of a wide range of mutational patterns
  8422. in SNV base substitution data.")
  8423. (license license:expat)))
  8424. (define-public r-wgcna
  8425. (package
  8426. (name "r-wgcna")
  8427. (version "1.66")
  8428. (source
  8429. (origin
  8430. (method url-fetch)
  8431. (uri (cran-uri "WGCNA" version))
  8432. (sha256
  8433. (base32
  8434. "0rhnyhzfn93yp24jz9v6dzrmyizwzdw070a7idm0k33w1cm8sjqv"))))
  8435. (properties `((upstream-name . "WGCNA")))
  8436. (build-system r-build-system)
  8437. (propagated-inputs
  8438. `(("r-annotationdbi" ,r-annotationdbi)
  8439. ("r-doparallel" ,r-doparallel)
  8440. ("r-dynamictreecut" ,r-dynamictreecut)
  8441. ("r-fastcluster" ,r-fastcluster)
  8442. ("r-foreach" ,r-foreach)
  8443. ("r-go-db" ,r-go-db)
  8444. ("r-hmisc" ,r-hmisc)
  8445. ("r-impute" ,r-impute)
  8446. ("r-rcpp" ,r-rcpp)
  8447. ("r-robust" ,r-robust)
  8448. ("r-survival" ,r-survival)
  8449. ("r-matrixstats" ,r-matrixstats)
  8450. ("r-preprocesscore" ,r-preprocesscore)))
  8451. (home-page
  8452. "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
  8453. (synopsis "Weighted correlation network analysis")
  8454. (description
  8455. "This package provides functions necessary to perform Weighted
  8456. Correlation Network Analysis on high-dimensional data. It includes functions
  8457. for rudimentary data cleaning, construction and summarization of correlation
  8458. networks, module identification and functions for relating both variables and
  8459. modules to sample traits. It also includes a number of utility functions for
  8460. data manipulation and visualization.")
  8461. (license license:gpl2+)))
  8462. (define-public r-chipkernels
  8463. (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
  8464. (revision "1"))
  8465. (package
  8466. (name "r-chipkernels")
  8467. (version (string-append "1.1-" revision "." (string-take commit 9)))
  8468. (source
  8469. (origin
  8470. (method git-fetch)
  8471. (uri (git-reference
  8472. (url "https://github.com/ManuSetty/ChIPKernels.git")
  8473. (commit commit)))
  8474. (file-name (string-append name "-" version))
  8475. (sha256
  8476. (base32
  8477. "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
  8478. (build-system r-build-system)
  8479. (propagated-inputs
  8480. `(("r-iranges" ,r-iranges)
  8481. ("r-xvector" ,r-xvector)
  8482. ("r-biostrings" ,r-biostrings)
  8483. ("r-bsgenome" ,r-bsgenome)
  8484. ("r-gtools" ,r-gtools)
  8485. ("r-genomicranges" ,r-genomicranges)
  8486. ("r-sfsmisc" ,r-sfsmisc)
  8487. ("r-kernlab" ,r-kernlab)
  8488. ("r-s4vectors" ,r-s4vectors)
  8489. ("r-biocgenerics" ,r-biocgenerics)))
  8490. (home-page "https://github.com/ManuSetty/ChIPKernels")
  8491. (synopsis "Build string kernels for DNA Sequence analysis")
  8492. (description "ChIPKernels is an R package for building different string
  8493. kernels used for DNA Sequence analysis. A dictionary of the desired kernel
  8494. must be built and this dictionary can be used for determining kernels for DNA
  8495. Sequences.")
  8496. (license license:gpl2+))))
  8497. (define-public r-seqgl
  8498. (package
  8499. (name "r-seqgl")
  8500. (version "1.1.4")
  8501. (source
  8502. (origin
  8503. (method git-fetch)
  8504. (uri (git-reference
  8505. (url "https://github.com/ManuSetty/SeqGL.git")
  8506. (commit version)))
  8507. (file-name (git-file-name name version))
  8508. (sha256
  8509. (base32
  8510. "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
  8511. (build-system r-build-system)
  8512. (propagated-inputs
  8513. `(("r-biostrings" ,r-biostrings)
  8514. ("r-chipkernels" ,r-chipkernels)
  8515. ("r-genomicranges" ,r-genomicranges)
  8516. ("r-spams" ,r-spams)
  8517. ("r-wgcna" ,r-wgcna)
  8518. ("r-fastcluster" ,r-fastcluster)))
  8519. (home-page "https://github.com/ManuSetty/SeqGL")
  8520. (synopsis "Group lasso for Dnase/ChIP-seq data")
  8521. (description "SeqGL is a group lasso based algorithm to extract
  8522. transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
  8523. This package presents a method which uses group lasso to discriminate between
  8524. bound and non bound genomic regions to accurately identify transcription
  8525. factors bound at the specific regions.")
  8526. (license license:gpl2+)))
  8527. (define-public r-gkmsvm
  8528. (package
  8529. (name "r-gkmsvm")
  8530. (version "0.79.0")
  8531. (source
  8532. (origin
  8533. (method url-fetch)
  8534. (uri (cran-uri "gkmSVM" version))
  8535. (sha256
  8536. (base32
  8537. "04dakbgfvfalz4rm4fvvybp506dn5fbj5g86ybfhrc6wywjllsz3"))))
  8538. (properties `((upstream-name . "gkmSVM")))
  8539. (build-system r-build-system)
  8540. (propagated-inputs
  8541. `(("r-biocgenerics" ,r-biocgenerics)
  8542. ("r-biostrings" ,r-biostrings)
  8543. ("r-genomeinfodb" ,r-genomeinfodb)
  8544. ("r-genomicranges" ,r-genomicranges)
  8545. ("r-iranges" ,r-iranges)
  8546. ("r-kernlab" ,r-kernlab)
  8547. ("r-rcpp" ,r-rcpp)
  8548. ("r-rocr" ,r-rocr)
  8549. ("r-rtracklayer" ,r-rtracklayer)
  8550. ("r-s4vectors" ,r-s4vectors)
  8551. ("r-seqinr" ,r-seqinr)))
  8552. (home-page "https://cran.r-project.org/web/packages/gkmSVM")
  8553. (synopsis "Gapped-kmer support vector machine")
  8554. (description
  8555. "This R package provides tools for training gapped-kmer SVM classifiers
  8556. for DNA and protein sequences. This package supports several sequence
  8557. kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
  8558. (license license:gpl2+)))
  8559. (define-public r-tximport
  8560. (package
  8561. (name "r-tximport")
  8562. (version "1.10.1")
  8563. (source (origin
  8564. (method url-fetch)
  8565. (uri (bioconductor-uri "tximport" version))
  8566. (sha256
  8567. (base32
  8568. "16wp09dm0cpb4mc00nmglfb8ica7qb4a55vm8ajgzyagbpfdd44l"))))
  8569. (build-system r-build-system)
  8570. (home-page "https://bioconductor.org/packages/tximport")
  8571. (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
  8572. (description
  8573. "This package provides tools to import transcript-level abundance,
  8574. estimated counts and transcript lengths, and to summarize them into matrices
  8575. for use with downstream gene-level analysis packages. Average transcript
  8576. length, weighted by sample-specific transcript abundance estimates, is
  8577. provided as a matrix which can be used as an offset for different expression
  8578. of gene-level counts.")
  8579. (license license:gpl2+)))
  8580. (define-public r-rhdf5
  8581. (package
  8582. (name "r-rhdf5")
  8583. (version "2.26.2")
  8584. (source (origin
  8585. (method url-fetch)
  8586. (uri (bioconductor-uri "rhdf5" version))
  8587. (sha256
  8588. (base32
  8589. "10zkw3k13wmvyif417gplyf6rwp2gpkjasw97lhwv2f9i32rry9l"))))
  8590. (build-system r-build-system)
  8591. (propagated-inputs
  8592. `(("r-rhdf5lib" ,r-rhdf5lib)))
  8593. (inputs
  8594. `(("zlib" ,zlib)))
  8595. (home-page "https://bioconductor.org/packages/rhdf5")
  8596. (synopsis "HDF5 interface to R")
  8597. (description
  8598. "This R/Bioconductor package provides an interface between HDF5 and R.
  8599. HDF5's main features are the ability to store and access very large and/or
  8600. complex datasets and a wide variety of metadata on mass storage (disk) through
  8601. a completely portable file format. The rhdf5 package is thus suited for the
  8602. exchange of large and/or complex datasets between R and other software
  8603. package, and for letting R applications work on datasets that are larger than
  8604. the available RAM.")
  8605. (license license:artistic2.0)))
  8606. (define-public r-annotationfilter
  8607. (package
  8608. (name "r-annotationfilter")
  8609. (version "1.6.0")
  8610. (source (origin
  8611. (method url-fetch)
  8612. (uri (bioconductor-uri "AnnotationFilter" version))
  8613. (sha256
  8614. (base32
  8615. "0wrr10cxjzmxx46vjzq2nsf6xlqz1sqwx4xm0sk3d77ff8wmph4x"))))
  8616. (properties
  8617. `((upstream-name . "AnnotationFilter")))
  8618. (build-system r-build-system)
  8619. (propagated-inputs
  8620. `(("r-genomicranges" ,r-genomicranges)
  8621. ("r-lazyeval" ,r-lazyeval)))
  8622. (home-page "https://github.com/Bioconductor/AnnotationFilter")
  8623. (synopsis "Facilities for filtering Bioconductor annotation resources")
  8624. (description
  8625. "This package provides classes and other infrastructure to implement
  8626. filters for manipulating Bioconductor annotation resources. The filters are
  8627. used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
  8628. (license license:artistic2.0)))
  8629. (define-public emboss
  8630. (package
  8631. (name "emboss")
  8632. (version "6.5.7")
  8633. (source (origin
  8634. (method url-fetch)
  8635. (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
  8636. (version-major+minor version) ".0/"
  8637. "EMBOSS-" version ".tar.gz"))
  8638. (sha256
  8639. (base32
  8640. "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
  8641. (build-system gnu-build-system)
  8642. (arguments
  8643. `(#:configure-flags
  8644. (list (string-append "--with-hpdf="
  8645. (assoc-ref %build-inputs "libharu")))
  8646. #:phases
  8647. (modify-phases %standard-phases
  8648. (add-after 'unpack 'fix-checks
  8649. (lambda _
  8650. ;; The PNGDRIVER tests check for the presence of libgd, libpng
  8651. ;; and zlib, but assume that they are all found at the same
  8652. ;; prefix.
  8653. (substitute* "configure.in"
  8654. (("CHECK_PNGDRIVER")
  8655. "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
  8656. AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
  8657. AM_CONDITIONAL(AMPNG, true)"))
  8658. #t))
  8659. (add-after 'fix-checks 'disable-update-check
  8660. (lambda _
  8661. ;; At build time there is no connection to the Internet, so
  8662. ;; looking for updates will not work.
  8663. (substitute* "Makefile.am"
  8664. (("\\$\\(bindir\\)/embossupdate") ""))
  8665. #t))
  8666. (add-after 'disable-update-check 'autogen
  8667. (lambda _ (invoke "autoreconf" "-vif") #t)))))
  8668. (inputs
  8669. `(("perl" ,perl)
  8670. ("libpng" ,libpng)
  8671. ("gd" ,gd)
  8672. ("libx11" ,libx11)
  8673. ("libharu" ,libharu)
  8674. ("zlib" ,zlib)))
  8675. (native-inputs
  8676. `(("autoconf" ,autoconf)
  8677. ("automake" ,automake)
  8678. ("libtool" ,libtool)
  8679. ("pkg-config" ,pkg-config)))
  8680. (home-page "http://emboss.sourceforge.net")
  8681. (synopsis "Molecular biology analysis suite")
  8682. (description "EMBOSS is the \"European Molecular Biology Open Software
  8683. Suite\". EMBOSS is an analysis package specially developed for the needs of
  8684. the molecular biology (e.g. EMBnet) user community. The software
  8685. automatically copes with data in a variety of formats and even allows
  8686. transparent retrieval of sequence data from the web. It also provides a
  8687. number of libraries for the development of software in the field of molecular
  8688. biology. EMBOSS also integrates a range of currently available packages and
  8689. tools for sequence analysis into a seamless whole.")
  8690. (license license:gpl2+)))
  8691. (define-public bits
  8692. (let ((revision "1")
  8693. (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
  8694. (package
  8695. (name "bits")
  8696. ;; The version is 2.13.0 even though no release archives have been
  8697. ;; published as yet.
  8698. (version (string-append "2.13.0-" revision "." (string-take commit 9)))
  8699. (source (origin
  8700. (method git-fetch)
  8701. (uri (git-reference
  8702. (url "https://github.com/arq5x/bits.git")
  8703. (commit commit)))
  8704. (file-name (string-append name "-" version "-checkout"))
  8705. (sha256
  8706. (base32
  8707. "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
  8708. (build-system gnu-build-system)
  8709. (arguments
  8710. `(#:tests? #f ;no tests included
  8711. #:phases
  8712. (modify-phases %standard-phases
  8713. (delete 'configure)
  8714. (add-after 'unpack 'remove-cuda
  8715. (lambda _
  8716. (substitute* "Makefile"
  8717. ((".*_cuda") "")
  8718. (("(bits_test_intersections) \\\\" _ match) match))
  8719. #t))
  8720. (replace 'install
  8721. (lambda* (#:key outputs #:allow-other-keys)
  8722. (copy-recursively
  8723. "bin" (string-append (assoc-ref outputs "out") "/bin"))
  8724. #t)))))
  8725. (inputs
  8726. `(("gsl" ,gsl)
  8727. ("zlib" ,zlib)))
  8728. (home-page "https://github.com/arq5x/bits")
  8729. (synopsis "Implementation of binary interval search algorithm")
  8730. (description "This package provides an implementation of the
  8731. BITS (Binary Interval Search) algorithm, an approach to interval set
  8732. intersection. It is especially suited for the comparison of diverse genomic
  8733. datasets and the exploration of large datasets of genome
  8734. intervals (e.g. genes, sequence alignments).")
  8735. (license license:gpl2))))
  8736. (define-public piranha
  8737. ;; There is no release tarball for the latest version. The latest commit is
  8738. ;; older than one year at the time of this writing.
  8739. (let ((revision "1")
  8740. (commit "0466d364b71117d01e4471b74c514436cc281233"))
  8741. (package
  8742. (name "piranha")
  8743. (version (string-append "1.2.1-" revision "." (string-take commit 9)))
  8744. (source (origin
  8745. (method git-fetch)
  8746. (uri (git-reference
  8747. (url "https://github.com/smithlabcode/piranha.git")
  8748. (commit commit)))
  8749. (file-name (git-file-name name version))
  8750. (sha256
  8751. (base32
  8752. "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
  8753. (build-system gnu-build-system)
  8754. (arguments
  8755. `(#:test-target "test"
  8756. #:phases
  8757. (modify-phases %standard-phases
  8758. (add-after 'unpack 'copy-smithlab-cpp
  8759. (lambda* (#:key inputs #:allow-other-keys)
  8760. (for-each (lambda (file)
  8761. (install-file file "./src/smithlab_cpp/"))
  8762. (find-files (assoc-ref inputs "smithlab-cpp")))
  8763. #t))
  8764. (add-after 'install 'install-to-store
  8765. (lambda* (#:key outputs #:allow-other-keys)
  8766. (let* ((out (assoc-ref outputs "out"))
  8767. (bin (string-append out "/bin")))
  8768. (for-each (lambda (file)
  8769. (install-file file bin))
  8770. (find-files "bin" ".*")))
  8771. #t)))
  8772. #:configure-flags
  8773. (list (string-append "--with-bam_tools_headers="
  8774. (assoc-ref %build-inputs "bamtools") "/include/bamtools")
  8775. (string-append "--with-bam_tools_library="
  8776. (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
  8777. (inputs
  8778. `(("bamtools" ,bamtools)
  8779. ("samtools" ,samtools-0.1)
  8780. ("gsl" ,gsl)
  8781. ("smithlab-cpp"
  8782. ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
  8783. (origin
  8784. (method git-fetch)
  8785. (uri (git-reference
  8786. (url "https://github.com/smithlabcode/smithlab_cpp.git")
  8787. (commit commit)))
  8788. (file-name (string-append "smithlab_cpp-" commit "-checkout"))
  8789. (sha256
  8790. (base32
  8791. "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
  8792. (native-inputs
  8793. `(("python" ,python-2)))
  8794. (home-page "https://github.com/smithlabcode/piranha")
  8795. (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
  8796. (description
  8797. "Piranha is a peak-caller for genomic data produced by CLIP-seq and
  8798. RIP-seq experiments. It takes input in BED or BAM format and identifies
  8799. regions of statistically significant read enrichment. Additional covariates
  8800. may optionally be provided to further inform the peak-calling process.")
  8801. (license license:gpl3+))))
  8802. (define-public pepr
  8803. (package
  8804. (name "pepr")
  8805. (version "1.0.9")
  8806. (source (origin
  8807. (method url-fetch)
  8808. (uri (pypi-uri "PePr" version))
  8809. (sha256
  8810. (base32
  8811. "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
  8812. (build-system python-build-system)
  8813. (arguments
  8814. `(#:python ,python-2 ; python2 only
  8815. #:tests? #f)) ; no tests included
  8816. (propagated-inputs
  8817. `(("python2-numpy" ,python2-numpy)
  8818. ("python2-scipy" ,python2-scipy)
  8819. ("python2-pysam" ,python2-pysam)))
  8820. (home-page "https://github.com/shawnzhangyx/PePr")
  8821. (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
  8822. (description
  8823. "PePr is a ChIP-Seq peak calling or differential binding analysis tool
  8824. that is primarily designed for data with biological replicates. It uses a
  8825. negative binomial distribution to model the read counts among the samples in
  8826. the same group, and look for consistent differences between ChIP and control
  8827. group or two ChIP groups run under different conditions.")
  8828. (license license:gpl3+)))
  8829. (define-public filevercmp
  8830. (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
  8831. (package
  8832. (name "filevercmp")
  8833. (version (string-append "0-1." (string-take commit 7)))
  8834. (source (origin
  8835. (method git-fetch)
  8836. (uri (git-reference
  8837. (url "https://github.com/ekg/filevercmp.git")
  8838. (commit commit)))
  8839. (file-name (git-file-name name commit))
  8840. (sha256
  8841. (base32
  8842. "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
  8843. (build-system gnu-build-system)
  8844. (arguments
  8845. `(#:tests? #f ; There are no tests to run.
  8846. #:phases
  8847. (modify-phases %standard-phases
  8848. (delete 'configure) ; There is no configure phase.
  8849. (replace 'install
  8850. (lambda* (#:key outputs #:allow-other-keys)
  8851. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  8852. (install-file "filevercmp" bin)
  8853. #t))))))
  8854. (home-page "https://github.com/ekg/filevercmp")
  8855. (synopsis "This program compares version strings")
  8856. (description "This program compares version strings. It intends to be a
  8857. replacement for strverscmp.")
  8858. (license license:gpl3+))))
  8859. (define-public multiqc
  8860. (package
  8861. (name "multiqc")
  8862. (version "1.5")
  8863. (source
  8864. (origin
  8865. (method url-fetch)
  8866. (uri (pypi-uri "multiqc" version))
  8867. (sha256
  8868. (base32
  8869. "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
  8870. (build-system python-build-system)
  8871. (propagated-inputs
  8872. `(("python-jinja2" ,python-jinja2)
  8873. ("python-simplejson" ,python-simplejson)
  8874. ("python-pyyaml" ,python-pyyaml)
  8875. ("python-click" ,python-click)
  8876. ("python-spectra" ,python-spectra)
  8877. ("python-requests" ,python-requests)
  8878. ("python-markdown" ,python-markdown)
  8879. ("python-lzstring" ,python-lzstring)
  8880. ("python-matplotlib" ,python-matplotlib)
  8881. ("python-numpy" ,python-numpy)
  8882. ;; MultQC checks for the presence of nose at runtime.
  8883. ("python-nose" ,python-nose)))
  8884. (arguments
  8885. `(#:phases
  8886. (modify-phases %standard-phases
  8887. (add-after 'unpack 'relax-requirements
  8888. (lambda _
  8889. (substitute* "setup.py"
  8890. ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
  8891. ;; than the one in Guix, but should work fine with 2.2.2.
  8892. ;; See <https://github.com/ewels/MultiQC/issues/725> and
  8893. ;; <https://github.com/ewels/MultiQC/issues/732> for details.
  8894. (("['\"]matplotlib.*?['\"]")
  8895. "'matplotlib'"))
  8896. #t)))))
  8897. (home-page "http://multiqc.info")
  8898. (synopsis "Aggregate bioinformatics analysis reports")
  8899. (description
  8900. "MultiQC is a tool to aggregate bioinformatics results across many
  8901. samples into a single report. It contains modules for a large number of
  8902. common bioinformatics tools.")
  8903. (license license:gpl3+)))
  8904. (define-public r-chipseq
  8905. (package
  8906. (name "r-chipseq")
  8907. (version "1.32.0")
  8908. (source
  8909. (origin
  8910. (method url-fetch)
  8911. (uri (bioconductor-uri "chipseq" version))
  8912. (sha256
  8913. (base32
  8914. "1pp1rm5fs3hlar5x4dl3a3b4gara7qwf81dbvka6r1n78hrf9x1b"))))
  8915. (build-system r-build-system)
  8916. (propagated-inputs
  8917. `(("r-biocgenerics" ,r-biocgenerics)
  8918. ("r-genomicranges" ,r-genomicranges)
  8919. ("r-iranges" ,r-iranges)
  8920. ("r-lattice" ,r-lattice)
  8921. ("r-s4vectors" ,r-s4vectors)
  8922. ("r-shortread" ,r-shortread)))
  8923. (home-page "https://bioconductor.org/packages/chipseq")
  8924. (synopsis "Package for analyzing ChIPseq data")
  8925. (description
  8926. "This package provides tools for processing short read data from ChIPseq
  8927. experiments.")
  8928. (license license:artistic2.0)))
  8929. (define-public r-copyhelper
  8930. (package
  8931. (name "r-copyhelper")
  8932. (version "1.6.0")
  8933. (source
  8934. (origin
  8935. (method url-fetch)
  8936. (uri (string-append "https://bioconductor.org/packages/release/"
  8937. "data/experiment/src/contrib/CopyhelpeR_"
  8938. version ".tar.gz"))
  8939. (sha256
  8940. (base32
  8941. "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
  8942. (properties `((upstream-name . "CopyhelpeR")))
  8943. (build-system r-build-system)
  8944. (home-page "https://bioconductor.org/packages/CopyhelpeR/")
  8945. (synopsis "Helper files for CopywriteR")
  8946. (description
  8947. "This package contains the helper files that are required to run the
  8948. Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
  8949. and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
  8950. mm10. In addition, it contains a blacklist filter to remove regions that
  8951. display copy number variation. Files are stored as GRanges objects from the
  8952. GenomicRanges Bioconductor package.")
  8953. (license license:gpl2)))
  8954. (define-public r-copywriter
  8955. (package
  8956. (name "r-copywriter")
  8957. (version "2.14.1")
  8958. (source
  8959. (origin
  8960. (method url-fetch)
  8961. (uri (bioconductor-uri "CopywriteR" version))
  8962. (sha256
  8963. (base32
  8964. "1hbiw0m9hmx4na9v502pxf8y5wvxzr68r4d3fqr2755gxx86qck6"))))
  8965. (properties `((upstream-name . "CopywriteR")))
  8966. (build-system r-build-system)
  8967. (propagated-inputs
  8968. `(("r-biocparallel" ,r-biocparallel)
  8969. ("r-chipseq" ,r-chipseq)
  8970. ("r-copyhelper" ,r-copyhelper)
  8971. ("r-data-table" ,r-data-table)
  8972. ("r-dnacopy" ,r-dnacopy)
  8973. ("r-futile-logger" ,r-futile-logger)
  8974. ("r-genomeinfodb" ,r-genomeinfodb)
  8975. ("r-genomicalignments" ,r-genomicalignments)
  8976. ("r-genomicranges" ,r-genomicranges)
  8977. ("r-gtools" ,r-gtools)
  8978. ("r-iranges" ,r-iranges)
  8979. ("r-matrixstats" ,r-matrixstats)
  8980. ("r-rsamtools" ,r-rsamtools)
  8981. ("r-s4vectors" ,r-s4vectors)))
  8982. (home-page "https://github.com/PeeperLab/CopywriteR")
  8983. (synopsis "Copy number information from targeted sequencing")
  8984. (description
  8985. "CopywriteR extracts DNA copy number information from targeted sequencing
  8986. by utilizing off-target reads. It allows for extracting uniformly distributed
  8987. copy number information, can be used without reference, and can be applied to
  8988. sequencing data obtained from various techniques including chromatin
  8989. immunoprecipitation and target enrichment on small gene panels. Thereby,
  8990. CopywriteR constitutes a widely applicable alternative to available copy
  8991. number detection tools.")
  8992. (license license:gpl2)))
  8993. (define-public r-methylkit
  8994. (package
  8995. (name "r-methylkit")
  8996. (version "1.8.1")
  8997. (source (origin
  8998. (method url-fetch)
  8999. (uri (bioconductor-uri "methylKit" version))
  9000. (sha256
  9001. (base32
  9002. "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
  9003. (properties `((upstream-name . "methylKit")))
  9004. (build-system r-build-system)
  9005. (propagated-inputs
  9006. `(("r-data-table" ,r-data-table)
  9007. ("r-emdbook" ,r-emdbook)
  9008. ("r-fastseg" ,r-fastseg)
  9009. ("r-genomeinfodb" ,r-genomeinfodb)
  9010. ("r-genomicranges" ,r-genomicranges)
  9011. ("r-gtools" ,r-gtools)
  9012. ("r-iranges" ,r-iranges)
  9013. ("r-kernsmooth" ,r-kernsmooth)
  9014. ("r-limma" ,r-limma)
  9015. ("r-mclust" ,r-mclust)
  9016. ("r-qvalue" ,r-qvalue)
  9017. ("r-r-utils" ,r-r-utils)
  9018. ("r-rcpp" ,r-rcpp)
  9019. ("r-rhtslib" ,r-rhtslib)
  9020. ("r-rsamtools" ,r-rsamtools)
  9021. ("r-rtracklayer" ,r-rtracklayer)
  9022. ("r-s4vectors" ,r-s4vectors)
  9023. ("r-zlibbioc" ,r-zlibbioc)))
  9024. (inputs
  9025. `(("zlib" ,zlib)))
  9026. (home-page "https://github.com/al2na/methylKit")
  9027. (synopsis
  9028. "DNA methylation analysis from high-throughput bisulfite sequencing results")
  9029. (description
  9030. "MethylKit is an R package for DNA methylation analysis and annotation
  9031. from high-throughput bisulfite sequencing. The package is designed to deal
  9032. with sequencing data from @dfn{Reduced representation bisulfite
  9033. sequencing} (RRBS) and its variants, but also target-capture methods and whole
  9034. genome bisulfite sequencing. It also has functions to analyze base-pair
  9035. resolution 5hmC data from experimental protocols such as oxBS-Seq and
  9036. TAB-Seq.")
  9037. (license license:artistic2.0)))
  9038. (define-public r-sva
  9039. (package
  9040. (name "r-sva")
  9041. (version "3.30.1")
  9042. (source
  9043. (origin
  9044. (method url-fetch)
  9045. (uri (bioconductor-uri "sva" version))
  9046. (sha256
  9047. (base32
  9048. "0czja4c5jxa0g3fspi90nyajqmvzb29my4ykv2wi66h43f5dlwhq"))))
  9049. (build-system r-build-system)
  9050. (propagated-inputs
  9051. `(("r-genefilter" ,r-genefilter)
  9052. ("r-mgcv" ,r-mgcv)
  9053. ("r-biocparallel" ,r-biocparallel)
  9054. ("r-matrixstats" ,r-matrixstats)
  9055. ("r-limma" ,r-limma)))
  9056. (home-page "https://bioconductor.org/packages/sva")
  9057. (synopsis "Surrogate variable analysis")
  9058. (description
  9059. "This package contains functions for removing batch effects and other
  9060. unwanted variation in high-throughput experiment. It also contains functions
  9061. for identifying and building surrogate variables for high-dimensional data
  9062. sets. Surrogate variables are covariates constructed directly from
  9063. high-dimensional data like gene expression/RNA sequencing/methylation/brain
  9064. imaging data that can be used in subsequent analyses to adjust for unknown,
  9065. unmodeled, or latent sources of noise.")
  9066. (license license:artistic2.0)))
  9067. (define-public r-seqminer
  9068. (package
  9069. (name "r-seqminer")
  9070. (version "7.1")
  9071. (source
  9072. (origin
  9073. (method url-fetch)
  9074. (uri (cran-uri "seqminer" version))
  9075. (sha256
  9076. (base32
  9077. "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
  9078. (build-system r-build-system)
  9079. (inputs
  9080. `(("zlib" ,zlib)))
  9081. (home-page "http://seqminer.genomic.codes")
  9082. (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
  9083. (description
  9084. "This package provides tools to integrate nucleotide sequencing
  9085. data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
  9086. ;; Any version of the GPL is acceptable
  9087. (license (list license:gpl2+ license:gpl3+))))
  9088. (define-public r-raremetals2
  9089. (package
  9090. (name "r-raremetals2")
  9091. (version "0.1")
  9092. (source
  9093. (origin
  9094. (method url-fetch)
  9095. (uri (string-append "http://genome.sph.umich.edu/w/images/"
  9096. "b/b7/RareMETALS2_" version ".tar.gz"))
  9097. (sha256
  9098. (base32
  9099. "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
  9100. (properties `((upstream-name . "RareMETALS2")))
  9101. (build-system r-build-system)
  9102. (propagated-inputs
  9103. `(("r-seqminer" ,r-seqminer)
  9104. ("r-mvtnorm" ,r-mvtnorm)
  9105. ("r-mass" ,r-mass)
  9106. ("r-compquadform" ,r-compquadform)
  9107. ("r-getopt" ,r-getopt)))
  9108. (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
  9109. (synopsis "Analyze gene-level association tests for binary trait")
  9110. (description
  9111. "The R package rareMETALS2 is an extension of the R package rareMETALS.
  9112. It was designed to meta-analyze gene-level association tests for binary trait.
  9113. While rareMETALS offers a near-complete solution for meta-analysis of
  9114. gene-level tests for quantitative trait, it does not offer the optimal
  9115. solution for binary trait. The package rareMETALS2 offers improved features
  9116. for analyzing gene-level association tests in meta-analyses for binary
  9117. trait.")
  9118. (license license:gpl3)))
  9119. (define-public r-maldiquant
  9120. (package
  9121. (name "r-maldiquant")
  9122. (version "1.18")
  9123. (source
  9124. (origin
  9125. (method url-fetch)
  9126. (uri (cran-uri "MALDIquant" version))
  9127. (sha256
  9128. (base32
  9129. "18nl214xjsxkcpbg79jkmw0yznwm5szyh2qb84n7ip46mm779ha6"))))
  9130. (properties `((upstream-name . "MALDIquant")))
  9131. (build-system r-build-system)
  9132. (home-page "https://cran.r-project.org/web/packages/MALDIquant")
  9133. (synopsis "Quantitative analysis of mass spectrometry data")
  9134. (description
  9135. "This package provides a complete analysis pipeline for matrix-assisted
  9136. laser desorption/ionization-time-of-flight (MALDI-TOF) and other
  9137. two-dimensional mass spectrometry data. In addition to commonly used plotting
  9138. and processing methods it includes distinctive features, namely baseline
  9139. subtraction methods such as morphological filters (TopHat) or the
  9140. statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
  9141. alignment using warping functions, handling of replicated measurements as well
  9142. as allowing spectra with different resolutions.")
  9143. (license license:gpl3+)))
  9144. (define-public r-protgenerics
  9145. (package
  9146. (name "r-protgenerics")
  9147. (version "1.14.0")
  9148. (source
  9149. (origin
  9150. (method url-fetch)
  9151. (uri (bioconductor-uri "ProtGenerics" version))
  9152. (sha256
  9153. (base32
  9154. "053mmxhzncqgigl2iqjlq56qzimlw2zzw31wpzw19rf7rld1vi3b"))))
  9155. (properties `((upstream-name . "ProtGenerics")))
  9156. (build-system r-build-system)
  9157. (home-page "https://github.com/lgatto/ProtGenerics")
  9158. (synopsis "S4 generic functions for proteomics infrastructure")
  9159. (description
  9160. "This package provides S4 generic functions needed by Bioconductor
  9161. proteomics packages.")
  9162. (license license:artistic2.0)))
  9163. (define-public r-mzr
  9164. (package
  9165. (name "r-mzr")
  9166. (version "2.16.1")
  9167. (source
  9168. (origin
  9169. (method url-fetch)
  9170. (uri (bioconductor-uri "mzR" version))
  9171. (sha256
  9172. (base32
  9173. "0mlwg646k49klxrznckzfv54a9mz6irj42fqpaaa0xjm6cw2lwaa"))
  9174. (modules '((guix build utils)))
  9175. (snippet
  9176. '(begin
  9177. (delete-file-recursively "src/boost")
  9178. #t))))
  9179. (properties `((upstream-name . "mzR")))
  9180. (build-system r-build-system)
  9181. (arguments
  9182. `(#:phases
  9183. (modify-phases %standard-phases
  9184. (add-after 'unpack 'use-system-boost
  9185. (lambda _
  9186. (substitute* "src/Makevars"
  9187. (("\\./boost/libs.*") "")
  9188. (("ARCH_OBJS=" line)
  9189. (string-append line
  9190. "\nARCH_LIBS=-lboost_system -lboost_regex \
  9191. -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
  9192. #t)))))
  9193. (inputs
  9194. `(("boost" ,boost) ; use this instead of the bundled boost sources
  9195. ("zlib" ,zlib)))
  9196. (propagated-inputs
  9197. `(("r-biobase" ,r-biobase)
  9198. ("r-biocgenerics" ,r-biocgenerics)
  9199. ("r-ncdf4" ,r-ncdf4)
  9200. ("r-protgenerics" ,r-protgenerics)
  9201. ("r-rcpp" ,r-rcpp)
  9202. ("r-rhdf5lib" ,r-rhdf5lib)
  9203. ("r-zlibbioc" ,r-zlibbioc)))
  9204. (home-page "https://github.com/sneumann/mzR/")
  9205. (synopsis "Parser for mass spectrometry data files")
  9206. (description
  9207. "The mzR package provides a unified API to the common file formats and
  9208. parsers available for mass spectrometry data. It comes with a wrapper for the
  9209. ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
  9210. The package contains the original code written by the ISB, and a subset of the
  9211. proteowizard library for mzML and mzIdentML. The netCDF reading code has
  9212. previously been used in XCMS.")
  9213. (license license:artistic2.0)))
  9214. (define-public r-affyio
  9215. (package
  9216. (name "r-affyio")
  9217. (version "1.52.0")
  9218. (source
  9219. (origin
  9220. (method url-fetch)
  9221. (uri (bioconductor-uri "affyio" version))
  9222. (sha256
  9223. (base32
  9224. "1s4zp1211vf0krxzch9v3q3r6vs8hihqppq18i2fpvwlknfja7c1"))))
  9225. (build-system r-build-system)
  9226. (propagated-inputs
  9227. `(("r-zlibbioc" ,r-zlibbioc)))
  9228. (inputs
  9229. `(("zlib" ,zlib)))
  9230. (home-page "https://github.com/bmbolstad/affyio")
  9231. (synopsis "Tools for parsing Affymetrix data files")
  9232. (description
  9233. "This package provides routines for parsing Affymetrix data files based
  9234. upon file format information. The primary focus is on accessing the CEL and
  9235. CDF file formats.")
  9236. (license license:lgpl2.0+)))
  9237. (define-public r-affy
  9238. (package
  9239. (name "r-affy")
  9240. (version "1.60.0")
  9241. (source
  9242. (origin
  9243. (method url-fetch)
  9244. (uri (bioconductor-uri "affy" version))
  9245. (sha256
  9246. (base32
  9247. "0x8h4fk2igv7vykqfvf6v9whmx3344v5rf3gyfajd431xkjldz6k"))))
  9248. (build-system r-build-system)
  9249. (propagated-inputs
  9250. `(("r-affyio" ,r-affyio)
  9251. ("r-biobase" ,r-biobase)
  9252. ("r-biocgenerics" ,r-biocgenerics)
  9253. ("r-biocmanager" ,r-biocmanager)
  9254. ("r-preprocesscore" ,r-preprocesscore)
  9255. ("r-zlibbioc" ,r-zlibbioc)))
  9256. (inputs
  9257. `(("zlib" ,zlib)))
  9258. (home-page "https://bioconductor.org/packages/affy")
  9259. (synopsis "Methods for affymetrix oligonucleotide arrays")
  9260. (description
  9261. "This package contains functions for exploratory oligonucleotide array
  9262. analysis.")
  9263. (license license:lgpl2.0+)))
  9264. (define-public r-vsn
  9265. (package
  9266. (name "r-vsn")
  9267. (version "3.50.0")
  9268. (source
  9269. (origin
  9270. (method url-fetch)
  9271. (uri (bioconductor-uri "vsn" version))
  9272. (sha256
  9273. (base32
  9274. "1g6qkpykw99jm2wv2i61dg2ffwk0n8fm4s5pm2q4c024vw5c9b69"))))
  9275. (build-system r-build-system)
  9276. (propagated-inputs
  9277. `(("r-affy" ,r-affy)
  9278. ("r-biobase" ,r-biobase)
  9279. ("r-ggplot2" ,r-ggplot2)
  9280. ("r-lattice" ,r-lattice)
  9281. ("r-limma" ,r-limma)))
  9282. (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
  9283. (synopsis "Variance stabilization and calibration for microarray data")
  9284. (description
  9285. "The package implements a method for normalising microarray intensities,
  9286. and works for single- and multiple-color arrays. It can also be used for data
  9287. from other technologies, as long as they have similar format. The method uses
  9288. a robust variant of the maximum-likelihood estimator for an
  9289. additive-multiplicative error model and affine calibration. The model
  9290. incorporates data calibration step (a.k.a. normalization), a model for the
  9291. dependence of the variance on the mean intensity and a variance stabilizing
  9292. data transformation. Differences between transformed intensities are
  9293. analogous to \"normalized log-ratios\". However, in contrast to the latter,
  9294. their variance is independent of the mean, and they are usually more sensitive
  9295. and specific in detecting differential transcription.")
  9296. (license license:artistic2.0)))
  9297. (define-public r-mzid
  9298. (package
  9299. (name "r-mzid")
  9300. (version "1.20.1")
  9301. (source
  9302. (origin
  9303. (method url-fetch)
  9304. (uri (bioconductor-uri "mzID" version))
  9305. (sha256
  9306. (base32
  9307. "15yd4bdxprw3kg7zj2k652y3yr3si781iw28jqvnkm0gsc23rd0c"))))
  9308. (properties `((upstream-name . "mzID")))
  9309. (build-system r-build-system)
  9310. (propagated-inputs
  9311. `(("r-doparallel" ,r-doparallel)
  9312. ("r-foreach" ,r-foreach)
  9313. ("r-iterators" ,r-iterators)
  9314. ("r-plyr" ,r-plyr)
  9315. ("r-protgenerics" ,r-protgenerics)
  9316. ("r-rcpp" ,r-rcpp)
  9317. ("r-xml" ,r-xml)))
  9318. (home-page "https://bioconductor.org/packages/mzID")
  9319. (synopsis "Parser for mzIdentML files")
  9320. (description
  9321. "This package provides a parser for mzIdentML files implemented using the
  9322. XML package. The parser tries to be general and able to handle all types of
  9323. mzIdentML files with the drawback of having less pretty output than a vendor
  9324. specific parser.")
  9325. (license license:gpl2+)))
  9326. (define-public r-pcamethods
  9327. (package
  9328. (name "r-pcamethods")
  9329. (version "1.74.0")
  9330. (source
  9331. (origin
  9332. (method url-fetch)
  9333. (uri (bioconductor-uri "pcaMethods" version))
  9334. (sha256
  9335. (base32
  9336. "0ik82s9bsdj4a1mmv0a3k6yisa92mxx7maf3dvip1r8gqlm3dyng"))))
  9337. (properties `((upstream-name . "pcaMethods")))
  9338. (build-system r-build-system)
  9339. (propagated-inputs
  9340. `(("r-biobase" ,r-biobase)
  9341. ("r-biocgenerics" ,r-biocgenerics)
  9342. ("r-mass" ,r-mass)
  9343. ("r-rcpp" ,r-rcpp)))
  9344. (home-page "https://github.com/hredestig/pcamethods")
  9345. (synopsis "Collection of PCA methods")
  9346. (description
  9347. "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
  9348. Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
  9349. for missing value estimation is included for comparison. BPCA, PPCA and
  9350. NipalsPCA may be used to perform PCA on incomplete data as well as for
  9351. accurate missing value estimation. A set of methods for printing and plotting
  9352. the results is also provided. All PCA methods make use of the same data
  9353. structure (pcaRes) to provide a common interface to the PCA results.")
  9354. (license license:gpl3+)))
  9355. (define-public r-msnbase
  9356. (package
  9357. (name "r-msnbase")
  9358. (version "2.8.3")
  9359. (source
  9360. (origin
  9361. (method url-fetch)
  9362. (uri (bioconductor-uri "MSnbase" version))
  9363. (sha256
  9364. (base32
  9365. "1kl1d7byphnfpmbl5fzbgs68dxskhpsdyx7ka51bpfn0nv3pp492"))))
  9366. (properties `((upstream-name . "MSnbase")))
  9367. (build-system r-build-system)
  9368. (propagated-inputs
  9369. `(("r-affy" ,r-affy)
  9370. ("r-biobase" ,r-biobase)
  9371. ("r-biocgenerics" ,r-biocgenerics)
  9372. ("r-biocparallel" ,r-biocparallel)
  9373. ("r-digest" ,r-digest)
  9374. ("r-ggplot2" ,r-ggplot2)
  9375. ("r-impute" ,r-impute)
  9376. ("r-iranges" ,r-iranges)
  9377. ("r-lattice" ,r-lattice)
  9378. ("r-maldiquant" ,r-maldiquant)
  9379. ("r-mass" ,r-mass)
  9380. ("r-mzid" ,r-mzid)
  9381. ("r-mzr" ,r-mzr)
  9382. ("r-pcamethods" ,r-pcamethods)
  9383. ("r-plyr" ,r-plyr)
  9384. ("r-preprocesscore" ,r-preprocesscore)
  9385. ("r-protgenerics" ,r-protgenerics)
  9386. ("r-rcpp" ,r-rcpp)
  9387. ("r-s4vectors" ,r-s4vectors)
  9388. ("r-scales" ,r-scales)
  9389. ("r-vsn" ,r-vsn)
  9390. ("r-xml" ,r-xml)))
  9391. (home-page "https://github.com/lgatto/MSnbase")
  9392. (synopsis "Base functions and classes for MS-based proteomics")
  9393. (description
  9394. "This package provides basic plotting, data manipulation and processing
  9395. of mass spectrometry based proteomics data.")
  9396. (license license:artistic2.0)))
  9397. (define-public r-msnid
  9398. (package
  9399. (name "r-msnid")
  9400. (version "1.16.1")
  9401. (source
  9402. (origin
  9403. (method url-fetch)
  9404. (uri (bioconductor-uri "MSnID" version))
  9405. (sha256
  9406. (base32
  9407. "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
  9408. (properties `((upstream-name . "MSnID")))
  9409. (build-system r-build-system)
  9410. (propagated-inputs
  9411. `(("r-biobase" ,r-biobase)
  9412. ("r-data-table" ,r-data-table)
  9413. ("r-doparallel" ,r-doparallel)
  9414. ("r-dplyr" ,r-dplyr)
  9415. ("r-foreach" ,r-foreach)
  9416. ("r-iterators" ,r-iterators)
  9417. ("r-msnbase" ,r-msnbase)
  9418. ("r-mzid" ,r-mzid)
  9419. ("r-mzr" ,r-mzr)
  9420. ("r-protgenerics" ,r-protgenerics)
  9421. ("r-r-cache" ,r-r-cache)
  9422. ("r-rcpp" ,r-rcpp)
  9423. ("r-reshape2" ,r-reshape2)))
  9424. (home-page "https://bioconductor.org/packages/MSnID")
  9425. (synopsis "Utilities for LC-MSn proteomics identifications")
  9426. (description
  9427. "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
  9428. from mzIdentML (leveraging the mzID package) or text files. After collating
  9429. the search results from multiple datasets it assesses their identification
  9430. quality and optimize filtering criteria to achieve the maximum number of
  9431. identifications while not exceeding a specified false discovery rate. It also
  9432. contains a number of utilities to explore the MS/MS results and assess missed
  9433. and irregular enzymatic cleavages, mass measurement accuracy, etc.")
  9434. (license license:artistic2.0)))
  9435. (define-public r-seurat
  9436. (package
  9437. (name "r-seurat")
  9438. (version "2.3.4")
  9439. (source (origin
  9440. (method url-fetch)
  9441. (uri (cran-uri "Seurat" version))
  9442. (sha256
  9443. (base32
  9444. "0l8bv4i9nzz26mirnva10mq6pimibj24vk7vpvfypgn7xk4942hd"))))
  9445. (properties `((upstream-name . "Seurat")))
  9446. (build-system r-build-system)
  9447. (propagated-inputs
  9448. `(("r-ape" ,r-ape)
  9449. ("r-cluster" ,r-cluster)
  9450. ("r-cowplot" ,r-cowplot)
  9451. ("r-dosnow" ,r-dosnow)
  9452. ("r-dplyr" ,r-dplyr)
  9453. ("r-dtw" ,r-dtw)
  9454. ("r-fitdistrplus" ,r-fitdistrplus)
  9455. ("r-foreach" ,r-foreach)
  9456. ("r-fpc" ,r-fpc)
  9457. ("r-ggplot2" ,r-ggplot2)
  9458. ("r-ggridges" ,r-ggridges)
  9459. ("r-gplots" ,r-gplots)
  9460. ("r-hdf5r" ,r-hdf5r)
  9461. ("r-hmisc" ,r-hmisc)
  9462. ("r-httr" ,r-httr)
  9463. ("r-ica" ,r-ica)
  9464. ("r-igraph" ,r-igraph)
  9465. ("r-irlba" ,r-irlba)
  9466. ("r-lars" ,r-lars)
  9467. ("r-lmtest" ,r-lmtest)
  9468. ("r-mass" ,r-mass)
  9469. ("r-matrix" ,r-matrix)
  9470. ("r-metap" ,r-metap)
  9471. ("r-mixtools" ,r-mixtools)
  9472. ("r-pbapply" ,r-pbapply)
  9473. ("r-plotly" ,r-plotly)
  9474. ("r-png" ,r-png)
  9475. ("r-rann" ,r-rann)
  9476. ("r-rcolorbrewer" ,r-rcolorbrewer)
  9477. ("r-rcpp" ,r-rcpp)
  9478. ("r-rcppeigen" ,r-rcppeigen)
  9479. ("r-rcppprogress" ,r-rcppprogress)
  9480. ("r-reshape2" ,r-reshape2)
  9481. ("r-reticulate" ,r-reticulate)
  9482. ("r-rocr" ,r-rocr)
  9483. ("r-rtsne" ,r-rtsne)
  9484. ("r-sdmtools" ,r-sdmtools)
  9485. ("r-tidyr" ,r-tidyr)
  9486. ("r-tsne" ,r-tsne)))
  9487. (home-page "http://www.satijalab.org/seurat")
  9488. (synopsis "Seurat is an R toolkit for single cell genomics")
  9489. (description
  9490. "This package is an R package designed for QC, analysis, and
  9491. exploration of single cell RNA-seq data. It easily enables widely-used
  9492. analytical techniques, including the identification of highly variable genes,
  9493. dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
  9494. algorithms; density clustering, hierarchical clustering, k-means, and the
  9495. discovery of differentially expressed genes and markers.")
  9496. (license license:gpl3)))
  9497. (define-public r-aroma-light
  9498. (package
  9499. (name "r-aroma-light")
  9500. (version "3.12.0")
  9501. (source
  9502. (origin
  9503. (method url-fetch)
  9504. (uri (bioconductor-uri "aroma.light" version))
  9505. (sha256
  9506. (base32
  9507. "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
  9508. (properties `((upstream-name . "aroma.light")))
  9509. (build-system r-build-system)
  9510. (propagated-inputs
  9511. `(("r-matrixstats" ,r-matrixstats)
  9512. ("r-r-methodss3" ,r-r-methodss3)
  9513. ("r-r-oo" ,r-r-oo)
  9514. ("r-r-utils" ,r-r-utils)))
  9515. (home-page "https://github.com/HenrikBengtsson/aroma.light")
  9516. (synopsis "Methods for normalization and visualization of microarray data")
  9517. (description
  9518. "This package provides methods for microarray analysis that take basic
  9519. data types such as matrices and lists of vectors. These methods can be used
  9520. standalone, be utilized in other packages, or be wrapped up in higher-level
  9521. classes.")
  9522. (license license:gpl2+)))
  9523. (define-public r-deseq
  9524. (package
  9525. (name "r-deseq")
  9526. (version "1.34.1")
  9527. (source
  9528. (origin
  9529. (method url-fetch)
  9530. (uri (bioconductor-uri "DESeq" version))
  9531. (sha256
  9532. (base32
  9533. "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
  9534. (properties `((upstream-name . "DESeq")))
  9535. (build-system r-build-system)
  9536. (propagated-inputs
  9537. `(("r-biobase" ,r-biobase)
  9538. ("r-biocgenerics" ,r-biocgenerics)
  9539. ("r-genefilter" ,r-genefilter)
  9540. ("r-geneplotter" ,r-geneplotter)
  9541. ("r-lattice" ,r-lattice)
  9542. ("r-locfit" ,r-locfit)
  9543. ("r-mass" ,r-mass)
  9544. ("r-rcolorbrewer" ,r-rcolorbrewer)))
  9545. (home-page "http://www-huber.embl.de/users/anders/DESeq")
  9546. (synopsis "Differential gene expression analysis")
  9547. (description
  9548. "This package provides tools for estimating variance-mean dependence in
  9549. count data from high-throughput genetic sequencing assays and for testing for
  9550. differential expression based on a model using the negative binomial
  9551. distribution.")
  9552. (license license:gpl3+)))
  9553. (define-public r-edaseq
  9554. (package
  9555. (name "r-edaseq")
  9556. (version "2.16.3")
  9557. (source
  9558. (origin
  9559. (method url-fetch)
  9560. (uri (bioconductor-uri "EDASeq" version))
  9561. (sha256
  9562. (base32
  9563. "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
  9564. (properties `((upstream-name . "EDASeq")))
  9565. (build-system r-build-system)
  9566. (propagated-inputs
  9567. `(("r-annotationdbi" ,r-annotationdbi)
  9568. ("r-aroma-light" ,r-aroma-light)
  9569. ("r-biobase" ,r-biobase)
  9570. ("r-biocgenerics" ,r-biocgenerics)
  9571. ("r-biocmanager" ,r-biocmanager)
  9572. ("r-biomart" ,r-biomart)
  9573. ("r-biostrings" ,r-biostrings)
  9574. ("r-deseq" ,r-deseq)
  9575. ("r-genomicfeatures" ,r-genomicfeatures)
  9576. ("r-genomicranges" ,r-genomicranges)
  9577. ("r-iranges" ,r-iranges)
  9578. ("r-rsamtools" ,r-rsamtools)
  9579. ("r-shortread" ,r-shortread)))
  9580. (home-page "https://github.com/drisso/EDASeq")
  9581. (synopsis "Exploratory data analysis and normalization for RNA-Seq")
  9582. (description
  9583. "This package provides support for numerical and graphical summaries of
  9584. RNA-Seq genomic read data. Provided within-lane normalization procedures to
  9585. adjust for GC-content effect (or other gene-level effects) on read counts:
  9586. loess robust local regression, global-scaling, and full-quantile
  9587. normalization. Between-lane normalization procedures to adjust for
  9588. distributional differences between lanes (e.g., sequencing depth):
  9589. global-scaling and full-quantile normalization.")
  9590. (license license:artistic2.0)))
  9591. (define-public r-interactivedisplaybase
  9592. (package
  9593. (name "r-interactivedisplaybase")
  9594. (version "1.20.0")
  9595. (source
  9596. (origin
  9597. (method url-fetch)
  9598. (uri (bioconductor-uri "interactiveDisplayBase" version))
  9599. (sha256
  9600. (base32
  9601. "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
  9602. (properties
  9603. `((upstream-name . "interactiveDisplayBase")))
  9604. (build-system r-build-system)
  9605. (propagated-inputs
  9606. `(("r-biocgenerics" ,r-biocgenerics)
  9607. ("r-shiny" ,r-shiny)))
  9608. (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
  9609. (synopsis "Base package for web displays of Bioconductor objects")
  9610. (description
  9611. "This package contains the basic methods needed to generate interactive
  9612. Shiny-based display methods for Bioconductor objects.")
  9613. (license license:artistic2.0)))
  9614. (define-public r-annotationhub
  9615. (package
  9616. (name "r-annotationhub")
  9617. (version "2.14.2")
  9618. (source
  9619. (origin
  9620. (method url-fetch)
  9621. (uri (bioconductor-uri "AnnotationHub" version))
  9622. (sha256
  9623. (base32
  9624. "17fgrvcnbii9siv5rq5j09bxhqffx47f6jf10418qvr7hh61ic1g"))))
  9625. (properties `((upstream-name . "AnnotationHub")))
  9626. (build-system r-build-system)
  9627. (propagated-inputs
  9628. `(("r-annotationdbi" ,r-annotationdbi)
  9629. ("r-biocgenerics" ,r-biocgenerics)
  9630. ("r-biocmanager" ,r-biocmanager)
  9631. ("r-curl" ,r-curl)
  9632. ("r-httr" ,r-httr)
  9633. ("r-interactivedisplaybase" ,r-interactivedisplaybase)
  9634. ("r-rsqlite" ,r-rsqlite)
  9635. ("r-s4vectors" ,r-s4vectors)
  9636. ("r-yaml" ,r-yaml)))
  9637. (home-page "https://bioconductor.org/packages/AnnotationHub")
  9638. (synopsis "Client to access AnnotationHub resources")
  9639. (description
  9640. "This package provides a client for the Bioconductor AnnotationHub web
  9641. resource. The AnnotationHub web resource provides a central location where
  9642. genomic files (e.g. VCF, bed, wig) and other resources from standard
  9643. locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
  9644. metadata about each resource, e.g., a textual description, tags, and date of
  9645. modification. The client creates and manages a local cache of files retrieved
  9646. by the user, helping with quick and reproducible access.")
  9647. (license license:artistic2.0)))
  9648. (define-public r-fastseg
  9649. (package
  9650. (name "r-fastseg")
  9651. (version "1.28.0")
  9652. (source
  9653. (origin
  9654. (method url-fetch)
  9655. (uri (bioconductor-uri "fastseg" version))
  9656. (sha256
  9657. (base32
  9658. "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
  9659. (build-system r-build-system)
  9660. (propagated-inputs
  9661. `(("r-biobase" ,r-biobase)
  9662. ("r-biocgenerics" ,r-biocgenerics)
  9663. ("r-genomicranges" ,r-genomicranges)
  9664. ("r-iranges" ,r-iranges)
  9665. ("r-s4vectors" ,r-s4vectors)))
  9666. (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
  9667. (synopsis "Fast segmentation algorithm for genetic sequencing data")
  9668. (description
  9669. "Fastseg implements a very fast and efficient segmentation algorithm.
  9670. It can segment data from DNA microarrays and data from next generation
  9671. sequencing for example to detect copy number segments. Further it can segment
  9672. data from RNA microarrays like tiling arrays to identify transcripts. Most
  9673. generally, it can segment data given as a matrix or as a vector. Various data
  9674. formats can be used as input to fastseg like expression set objects for
  9675. microarrays or GRanges for sequencing data.")
  9676. (license license:lgpl2.0+)))
  9677. (define-public r-keggrest
  9678. (package
  9679. (name "r-keggrest")
  9680. (version "1.22.0")
  9681. (source
  9682. (origin
  9683. (method url-fetch)
  9684. (uri (bioconductor-uri "KEGGREST" version))
  9685. (sha256
  9686. (base32
  9687. "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
  9688. (properties `((upstream-name . "KEGGREST")))
  9689. (build-system r-build-system)
  9690. (propagated-inputs
  9691. `(("r-biostrings" ,r-biostrings)
  9692. ("r-httr" ,r-httr)
  9693. ("r-png" ,r-png)))
  9694. (home-page "https://bioconductor.org/packages/KEGGREST")
  9695. (synopsis "Client-side REST access to KEGG")
  9696. (description
  9697. "This package provides a package that provides a client interface to the
  9698. @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
  9699. (license license:artistic2.0)))
  9700. (define-public r-gage
  9701. (package
  9702. (name "r-gage")
  9703. (version "2.32.1")
  9704. (source
  9705. (origin
  9706. (method url-fetch)
  9707. (uri (bioconductor-uri "gage" version))
  9708. (sha256
  9709. (base32
  9710. "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
  9711. (build-system r-build-system)
  9712. (propagated-inputs
  9713. `(("r-annotationdbi" ,r-annotationdbi)
  9714. ("r-graph" ,r-graph)
  9715. ("r-keggrest" ,r-keggrest)))
  9716. (home-page "http://www.biomedcentral.com/1471-2105/10/161")
  9717. (synopsis "Generally applicable gene-set enrichment for pathway analysis")
  9718. (description
  9719. "GAGE is a published method for gene set (enrichment or GSEA) or pathway
  9720. analysis. GAGE is generally applicable independent of microarray or RNA-Seq
  9721. data attributes including sample sizes, experimental designs, assay platforms,
  9722. and other types of heterogeneity. The gage package provides functions for
  9723. basic GAGE analysis, result processing and presentation. In addition, it
  9724. provides demo microarray data and commonly used gene set data based on KEGG
  9725. pathways and GO terms. These funtions and data are also useful for gene set
  9726. analysis using other methods.")
  9727. (license license:gpl2+)))
  9728. (define-public r-genomicfiles
  9729. (package
  9730. (name "r-genomicfiles")
  9731. (version "1.18.0")
  9732. (source
  9733. (origin
  9734. (method url-fetch)
  9735. (uri (bioconductor-uri "GenomicFiles" version))
  9736. (sha256
  9737. (base32
  9738. "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
  9739. (properties `((upstream-name . "GenomicFiles")))
  9740. (build-system r-build-system)
  9741. (propagated-inputs
  9742. `(("r-biocgenerics" ,r-biocgenerics)
  9743. ("r-biocparallel" ,r-biocparallel)
  9744. ("r-genomeinfodb" ,r-genomeinfodb)
  9745. ("r-genomicalignments" ,r-genomicalignments)
  9746. ("r-genomicranges" ,r-genomicranges)
  9747. ("r-iranges" ,r-iranges)
  9748. ("r-rsamtools" ,r-rsamtools)
  9749. ("r-rtracklayer" ,r-rtracklayer)
  9750. ("r-s4vectors" ,r-s4vectors)
  9751. ("r-summarizedexperiment" ,r-summarizedexperiment)
  9752. ("r-variantannotation" ,r-variantannotation)))
  9753. (home-page "https://bioconductor.org/packages/GenomicFiles")
  9754. (synopsis "Distributed computing by file or by range")
  9755. (description
  9756. "This package provides infrastructure for parallel computations
  9757. distributed by file or by range. User defined mapper and reducer functions
  9758. provide added flexibility for data combination and manipulation.")
  9759. (license license:artistic2.0)))
  9760. (define-public r-complexheatmap
  9761. (package
  9762. (name "r-complexheatmap")
  9763. (version "1.20.0")
  9764. (source
  9765. (origin
  9766. (method url-fetch)
  9767. (uri (bioconductor-uri "ComplexHeatmap" version))
  9768. (sha256
  9769. (base32
  9770. "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
  9771. (properties
  9772. `((upstream-name . "ComplexHeatmap")))
  9773. (build-system r-build-system)
  9774. (propagated-inputs
  9775. `(("r-circlize" ,r-circlize)
  9776. ("r-colorspace" ,r-colorspace)
  9777. ("r-getoptlong" ,r-getoptlong)
  9778. ("r-globaloptions" ,r-globaloptions)
  9779. ("r-rcolorbrewer" ,r-rcolorbrewer)))
  9780. (home-page
  9781. "https://github.com/jokergoo/ComplexHeatmap")
  9782. (synopsis "Making Complex Heatmaps")
  9783. (description
  9784. "Complex heatmaps are efficient to visualize associations between
  9785. different sources of data sets and reveal potential structures. This package
  9786. provides a highly flexible way to arrange multiple heatmaps and supports
  9787. self-defined annotation graphics.")
  9788. (license license:gpl2+)))
  9789. (define-public r-dirichletmultinomial
  9790. (package
  9791. (name "r-dirichletmultinomial")
  9792. (version "1.24.1")
  9793. (source
  9794. (origin
  9795. (method url-fetch)
  9796. (uri (bioconductor-uri "DirichletMultinomial" version))
  9797. (sha256
  9798. (base32
  9799. "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
  9800. (properties
  9801. `((upstream-name . "DirichletMultinomial")))
  9802. (build-system r-build-system)
  9803. (inputs
  9804. `(("gsl" ,gsl)))
  9805. (propagated-inputs
  9806. `(("r-biocgenerics" ,r-biocgenerics)
  9807. ("r-iranges" ,r-iranges)
  9808. ("r-s4vectors" ,r-s4vectors)))
  9809. (home-page "https://bioconductor.org/packages/DirichletMultinomial")
  9810. (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
  9811. (description
  9812. "Dirichlet-multinomial mixture models can be used to describe variability
  9813. in microbial metagenomic data. This package is an interface to code
  9814. originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
  9815. 1-15.")
  9816. (license license:lgpl3)))
  9817. (define-public r-ensembldb
  9818. (package
  9819. (name "r-ensembldb")
  9820. (version "2.6.3")
  9821. (source
  9822. (origin
  9823. (method url-fetch)
  9824. (uri (bioconductor-uri "ensembldb" version))
  9825. (sha256
  9826. (base32
  9827. "0kzdsfk6mdwlp57sw4j2cf7lx5nc67v5j0xr3iag9kzmgikaq1lb"))))
  9828. (build-system r-build-system)
  9829. (propagated-inputs
  9830. `(("r-annotationdbi" ,r-annotationdbi)
  9831. ("r-annotationfilter" ,r-annotationfilter)
  9832. ("r-biobase" ,r-biobase)
  9833. ("r-biocgenerics" ,r-biocgenerics)
  9834. ("r-biostrings" ,r-biostrings)
  9835. ("r-curl" ,r-curl)
  9836. ("r-dbi" ,r-dbi)
  9837. ("r-genomeinfodb" ,r-genomeinfodb)
  9838. ("r-genomicfeatures" ,r-genomicfeatures)
  9839. ("r-genomicranges" ,r-genomicranges)
  9840. ("r-iranges" ,r-iranges)
  9841. ("r-protgenerics" ,r-protgenerics)
  9842. ("r-rsamtools" ,r-rsamtools)
  9843. ("r-rsqlite" ,r-rsqlite)
  9844. ("r-rtracklayer" ,r-rtracklayer)
  9845. ("r-s4vectors" ,r-s4vectors)))
  9846. (home-page "https://github.com/jotsetung/ensembldb")
  9847. (synopsis "Utilities to create and use Ensembl-based annotation databases")
  9848. (description
  9849. "The package provides functions to create and use transcript-centric
  9850. annotation databases/packages. The annotation for the databases are directly
  9851. fetched from Ensembl using their Perl API. The functionality and data is
  9852. similar to that of the TxDb packages from the @code{GenomicFeatures} package,
  9853. but, in addition to retrieve all gene/transcript models and annotations from
  9854. the database, the @code{ensembldb} package also provides a filter framework
  9855. allowing to retrieve annotations for specific entries like genes encoded on a
  9856. chromosome region or transcript models of lincRNA genes.")
  9857. ;; No version specified
  9858. (license license:lgpl3+)))
  9859. (define-public r-organismdbi
  9860. (package
  9861. (name "r-organismdbi")
  9862. (version "1.24.0")
  9863. (source
  9864. (origin
  9865. (method url-fetch)
  9866. (uri (bioconductor-uri "OrganismDbi" version))
  9867. (sha256
  9868. (base32
  9869. "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
  9870. (properties `((upstream-name . "OrganismDbi")))
  9871. (build-system r-build-system)
  9872. (propagated-inputs
  9873. `(("r-annotationdbi" ,r-annotationdbi)
  9874. ("r-biobase" ,r-biobase)
  9875. ("r-biocgenerics" ,r-biocgenerics)
  9876. ("r-biocmanager" ,r-biocmanager)
  9877. ("r-dbi" ,r-dbi)
  9878. ("r-genomicfeatures" ,r-genomicfeatures)
  9879. ("r-genomicranges" ,r-genomicranges)
  9880. ("r-graph" ,r-graph)
  9881. ("r-iranges" ,r-iranges)
  9882. ("r-rbgl" ,r-rbgl)
  9883. ("r-s4vectors" ,r-s4vectors)))
  9884. (home-page "https://bioconductor.org/packages/OrganismDbi")
  9885. (synopsis "Software to enable the smooth interfacing of database packages")
  9886. (description "The package enables a simple unified interface to several
  9887. annotation packages each of which has its own schema by taking advantage of
  9888. the fact that each of these packages implements a select methods.")
  9889. (license license:artistic2.0)))
  9890. (define-public r-biovizbase
  9891. (package
  9892. (name "r-biovizbase")
  9893. (version "1.30.1")
  9894. (source
  9895. (origin
  9896. (method url-fetch)
  9897. (uri (bioconductor-uri "biovizBase" version))
  9898. (sha256
  9899. (base32
  9900. "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
  9901. (properties `((upstream-name . "biovizBase")))
  9902. (build-system r-build-system)
  9903. (propagated-inputs
  9904. `(("r-annotationdbi" ,r-annotationdbi)
  9905. ("r-annotationfilter" ,r-annotationfilter)
  9906. ("r-biocgenerics" ,r-biocgenerics)
  9907. ("r-biostrings" ,r-biostrings)
  9908. ("r-dichromat" ,r-dichromat)
  9909. ("r-ensembldb" ,r-ensembldb)
  9910. ("r-genomeinfodb" ,r-genomeinfodb)
  9911. ("r-genomicalignments" ,r-genomicalignments)
  9912. ("r-genomicfeatures" ,r-genomicfeatures)
  9913. ("r-genomicranges" ,r-genomicranges)
  9914. ("r-hmisc" ,r-hmisc)
  9915. ("r-iranges" ,r-iranges)
  9916. ("r-rcolorbrewer" ,r-rcolorbrewer)
  9917. ("r-rlang" ,r-rlang)
  9918. ("r-rsamtools" ,r-rsamtools)
  9919. ("r-s4vectors" ,r-s4vectors)
  9920. ("r-scales" ,r-scales)
  9921. ("r-summarizedexperiment" ,r-summarizedexperiment)
  9922. ("r-variantannotation" ,r-variantannotation)))
  9923. (home-page "https://bioconductor.org/packages/biovizBase")
  9924. (synopsis "Basic graphic utilities for visualization of genomic data")
  9925. (description
  9926. "The biovizBase package is designed to provide a set of utilities, color
  9927. schemes and conventions for genomic data. It serves as the base for various
  9928. high-level packages for biological data visualization. This saves development
  9929. effort and encourages consistency.")
  9930. (license license:artistic2.0)))
  9931. (define-public r-ggbio
  9932. (package
  9933. (name "r-ggbio")
  9934. (version "1.30.0")
  9935. (source
  9936. (origin
  9937. (method url-fetch)
  9938. (uri (bioconductor-uri "ggbio" version))
  9939. (sha256
  9940. (base32
  9941. "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
  9942. (build-system r-build-system)
  9943. (propagated-inputs
  9944. `(("r-annotationdbi" ,r-annotationdbi)
  9945. ("r-annotationfilter" ,r-annotationfilter)
  9946. ("r-biobase" ,r-biobase)
  9947. ("r-biocgenerics" ,r-biocgenerics)
  9948. ("r-biostrings" ,r-biostrings)
  9949. ("r-biovizbase" ,r-biovizbase)
  9950. ("r-bsgenome" ,r-bsgenome)
  9951. ("r-ensembldb" ,r-ensembldb)
  9952. ("r-genomeinfodb" ,r-genomeinfodb)
  9953. ("r-genomicalignments" ,r-genomicalignments)
  9954. ("r-genomicfeatures" ,r-genomicfeatures)
  9955. ("r-genomicranges" ,r-genomicranges)
  9956. ("r-ggally" ,r-ggally)
  9957. ("r-ggplot2" ,r-ggplot2)
  9958. ("r-gridextra" ,r-gridextra)
  9959. ("r-gtable" ,r-gtable)
  9960. ("r-hmisc" ,r-hmisc)
  9961. ("r-iranges" ,r-iranges)
  9962. ("r-organismdbi" ,r-organismdbi)
  9963. ("r-reshape2" ,r-reshape2)
  9964. ("r-rlang" ,r-rlang)
  9965. ("r-rsamtools" ,r-rsamtools)
  9966. ("r-rtracklayer" ,r-rtracklayer)
  9967. ("r-s4vectors" ,r-s4vectors)
  9968. ("r-scales" ,r-scales)
  9969. ("r-summarizedexperiment" ,r-summarizedexperiment)
  9970. ("r-variantannotation" ,r-variantannotation)))
  9971. (home-page "http://www.tengfei.name/ggbio/")
  9972. (synopsis "Visualization tools for genomic data")
  9973. (description
  9974. "The ggbio package extends and specializes the grammar of graphics for
  9975. biological data. The graphics are designed to answer common scientific
  9976. questions, in particular those often asked of high throughput genomics data.
  9977. All core Bioconductor data structures are supported, where appropriate. The
  9978. package supports detailed views of particular genomic regions, as well as
  9979. genome-wide overviews. Supported overviews include ideograms and grand linear
  9980. views. High-level plots include sequence fragment length, edge-linked
  9981. interval to data view, mismatch pileup, and several splicing summaries.")
  9982. (license license:artistic2.0)))
  9983. (define-public r-gprofiler
  9984. (package
  9985. (name "r-gprofiler")
  9986. (version "0.6.7")
  9987. (source
  9988. (origin
  9989. (method url-fetch)
  9990. (uri (cran-uri "gProfileR" version))
  9991. (sha256
  9992. (base32
  9993. "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
  9994. (properties `((upstream-name . "gProfileR")))
  9995. (build-system r-build-system)
  9996. (propagated-inputs
  9997. `(("r-plyr" ,r-plyr)
  9998. ("r-rcurl" ,r-rcurl)))
  9999. (home-page "https://cran.r-project.org/web/packages/gProfileR/")
  10000. (synopsis "Interface to the g:Profiler toolkit")
  10001. (description
  10002. "This package provides tools for functional enrichment analysis,
  10003. gene identifier conversion and mapping homologous genes across related
  10004. organisms via the @code{g:Profiler} toolkit.")
  10005. (license license:gpl2+)))
  10006. (define-public r-gqtlbase
  10007. (package
  10008. (name "r-gqtlbase")
  10009. (version "1.14.0")
  10010. (source
  10011. (origin
  10012. (method url-fetch)
  10013. (uri (bioconductor-uri "gQTLBase" version))
  10014. (sha256
  10015. (base32
  10016. "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
  10017. (properties `((upstream-name . "gQTLBase")))
  10018. (build-system r-build-system)
  10019. (propagated-inputs
  10020. `(("r-batchjobs" ,r-batchjobs)
  10021. ("r-bbmisc" ,r-bbmisc)
  10022. ("r-biocgenerics" ,r-biocgenerics)
  10023. ("r-bit" ,r-bit)
  10024. ("r-doparallel" ,r-doparallel)
  10025. ("r-ff" ,r-ff)
  10026. ("r-ffbase" ,r-ffbase)
  10027. ("r-foreach" ,r-foreach)
  10028. ("r-genomicfiles" ,r-genomicfiles)
  10029. ("r-genomicranges" ,r-genomicranges)
  10030. ("r-rtracklayer" ,r-rtracklayer)
  10031. ("r-s4vectors" ,r-s4vectors)
  10032. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  10033. (home-page "https://bioconductor.org/packages/gQTLBase")
  10034. (synopsis "Infrastructure for eQTL, mQTL and similar studies")
  10035. (description
  10036. "The purpose of this package is to simplify the storage and interrogation
  10037. of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
  10038. and more.")
  10039. (license license:artistic2.0)))
  10040. (define-public r-snpstats
  10041. (package
  10042. (name "r-snpstats")
  10043. (version "1.32.0")
  10044. (source
  10045. (origin
  10046. (method url-fetch)
  10047. (uri (bioconductor-uri "snpStats" version))
  10048. (sha256
  10049. (base32
  10050. "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
  10051. (properties `((upstream-name . "snpStats")))
  10052. (build-system r-build-system)
  10053. (inputs `(("zlib" ,zlib)))
  10054. (propagated-inputs
  10055. `(("r-biocgenerics" ,r-biocgenerics)
  10056. ("r-matrix" ,r-matrix)
  10057. ("r-survival" ,r-survival)
  10058. ("r-zlibbioc" ,r-zlibbioc)))
  10059. (home-page "https://bioconductor.org/packages/snpStats")
  10060. (synopsis "Methods for SNP association studies")
  10061. (description
  10062. "This package provides classes and statistical methods for large
  10063. @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
  10064. the earlier snpMatrix package, allowing for uncertainty in genotypes.")
  10065. (license license:gpl3)))
  10066. (define-public r-homo-sapiens
  10067. (package
  10068. (name "r-homo-sapiens")
  10069. (version "1.3.1")
  10070. (source (origin
  10071. (method url-fetch)
  10072. ;; We cannot use bioconductor-uri here because this tarball is
  10073. ;; located under "data/annotation/" instead of "bioc/".
  10074. (uri (string-append "http://www.bioconductor.org/packages/"
  10075. "release/data/annotation/src/contrib/"
  10076. "Homo.sapiens_"
  10077. version ".tar.gz"))
  10078. (sha256
  10079. (base32
  10080. "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
  10081. (properties
  10082. `((upstream-name . "Homo.sapiens")))
  10083. (build-system r-build-system)
  10084. (propagated-inputs
  10085. `(("r-genomicfeatures" ,r-genomicfeatures)
  10086. ("r-go-db" ,r-go-db)
  10087. ("r-org-hs-eg-db" ,r-org-hs-eg-db)
  10088. ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
  10089. ("r-organismdbi" ,r-organismdbi)
  10090. ("r-annotationdbi" ,r-annotationdbi)))
  10091. (home-page "https://bioconductor.org/packages/Homo.sapiens/")
  10092. (synopsis "Annotation package for the Homo.sapiens object")
  10093. (description
  10094. "This package contains the Homo.sapiens object to access data from
  10095. several related annotation packages.")
  10096. (license license:artistic2.0)))
  10097. (define-public r-erma
  10098. (package
  10099. (name "r-erma")
  10100. (version "0.14.0")
  10101. (source
  10102. (origin
  10103. (method url-fetch)
  10104. (uri (bioconductor-uri "erma" version))
  10105. (sha256
  10106. (base32
  10107. "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
  10108. (build-system r-build-system)
  10109. (propagated-inputs
  10110. `(("r-annotationdbi" ,r-annotationdbi)
  10111. ("r-biobase" ,r-biobase)
  10112. ("r-biocgenerics" ,r-biocgenerics)
  10113. ("r-biocparallel" ,r-biocparallel)
  10114. ("r-genomeinfodb" ,r-genomeinfodb)
  10115. ("r-genomicfiles" ,r-genomicfiles)
  10116. ("r-genomicranges" ,r-genomicranges)
  10117. ("r-ggplot2" ,r-ggplot2)
  10118. ("r-homo-sapiens" ,r-homo-sapiens)
  10119. ("r-iranges" ,r-iranges)
  10120. ("r-rtracklayer" ,r-rtracklayer)
  10121. ("r-s4vectors" ,r-s4vectors)
  10122. ("r-shiny" ,r-shiny)
  10123. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  10124. (home-page "https://bioconductor.org/packages/erma")
  10125. (synopsis "Epigenomic road map adventures")
  10126. (description
  10127. "The epigenomics road map describes locations of epigenetic marks in DNA
  10128. from a variety of cell types. Of interest are locations of histone
  10129. modifications, sites of DNA methylation, and regions of accessible chromatin.
  10130. This package presents a selection of elements of the road map including
  10131. metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
  10132. by Ernst and Kellis.")
  10133. (license license:artistic2.0)))
  10134. (define-public r-ldblock
  10135. (package
  10136. (name "r-ldblock")
  10137. (version "1.12.0")
  10138. (source
  10139. (origin
  10140. (method url-fetch)
  10141. (uri (bioconductor-uri "ldblock" version))
  10142. (sha256
  10143. (base32
  10144. "0xbf4pmhrk5fnd1iz5wzjvdr75v114bwpznhcig4wiqmxc27sips"))))
  10145. (build-system r-build-system)
  10146. (propagated-inputs
  10147. `(("r-biocgenerics" ,r-biocgenerics)
  10148. ("r-erma" ,r-erma)
  10149. ("r-genomeinfodb" ,r-genomeinfodb)
  10150. ("r-genomicfiles" ,r-genomicfiles)
  10151. ("r-go-db" ,r-go-db)
  10152. ("r-homo-sapiens" ,r-homo-sapiens)
  10153. ("r-matrix" ,r-matrix)
  10154. ("r-rsamtools" ,r-rsamtools)
  10155. ("r-snpstats" ,r-snpstats)
  10156. ("r-variantannotation" ,r-variantannotation)))
  10157. (home-page "https://bioconductor.org/packages/ldblock")
  10158. (synopsis "Data structures for linkage disequilibrium measures in populations")
  10159. (description
  10160. "This package defines data structures for @dfn{linkage
  10161. disequilibrium} (LD) measures in populations. Its purpose is to simplify
  10162. handling of existing population-level data for the purpose of flexibly
  10163. defining LD blocks.")
  10164. (license license:artistic2.0)))
  10165. (define-public r-gqtlstats
  10166. (package
  10167. (name "r-gqtlstats")
  10168. (version "1.14.0")
  10169. (source
  10170. (origin
  10171. (method url-fetch)
  10172. (uri (bioconductor-uri "gQTLstats" version))
  10173. (sha256
  10174. (base32
  10175. "1sg9kw59dlayj7qxql9pd93d4hmml504sa3kkfpzfh3xri7m5pxf"))))
  10176. (properties `((upstream-name . "gQTLstats")))
  10177. (build-system r-build-system)
  10178. (propagated-inputs
  10179. `(("r-annotationdbi" ,r-annotationdbi)
  10180. ("r-batchjobs" ,r-batchjobs)
  10181. ("r-bbmisc" ,r-bbmisc)
  10182. ("r-beeswarm" ,r-beeswarm)
  10183. ("r-biobase" ,r-biobase)
  10184. ("r-biocgenerics" ,r-biocgenerics)
  10185. ("r-doparallel" ,r-doparallel)
  10186. ("r-dplyr" ,r-dplyr)
  10187. ("r-erma" ,r-erma)
  10188. ("r-ffbase" ,r-ffbase)
  10189. ("r-foreach" ,r-foreach)
  10190. ("r-genomeinfodb" ,r-genomeinfodb)
  10191. ("r-genomicfeatures" ,r-genomicfeatures)
  10192. ("r-genomicfiles" ,r-genomicfiles)
  10193. ("r-genomicranges" ,r-genomicranges)
  10194. ("r-ggbeeswarm" ,r-ggbeeswarm)
  10195. ("r-ggplot2" ,r-ggplot2)
  10196. ("r-gqtlbase" ,r-gqtlbase)
  10197. ("r-hardyweinberg" ,r-hardyweinberg)
  10198. ("r-homo-sapiens" ,r-homo-sapiens)
  10199. ("r-iranges" ,r-iranges)
  10200. ("r-limma" ,r-limma)
  10201. ("r-mgcv" ,r-mgcv)
  10202. ("r-plotly" ,r-plotly)
  10203. ("r-reshape2" ,r-reshape2)
  10204. ("r-s4vectors" ,r-s4vectors)
  10205. ("r-shiny" ,r-shiny)
  10206. ("r-snpstats" ,r-snpstats)
  10207. ("r-summarizedexperiment" ,r-summarizedexperiment)
  10208. ("r-variantannotation" ,r-variantannotation)))
  10209. (home-page "https://bioconductor.org/packages/gQTLstats")
  10210. (synopsis "Computationally efficient analysis for eQTL and allied studies")
  10211. (description
  10212. "This package provides tools for the computationally efficient analysis
  10213. of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
  10214. The software in this package aims to support refinements and functional
  10215. interpretation of members of a collection of association statistics on a
  10216. family of feature/genome hypotheses.")
  10217. (license license:artistic2.0)))
  10218. (define-public r-gviz
  10219. (package
  10220. (name "r-gviz")
  10221. (version "1.26.4")
  10222. (source
  10223. (origin
  10224. (method url-fetch)
  10225. (uri (bioconductor-uri "Gviz" version))
  10226. (sha256
  10227. (base32
  10228. "0jvcivgw0ahv2rjadxmrww76xambhf7silczmh38nn4yn4qw6w9y"))))
  10229. (properties `((upstream-name . "Gviz")))
  10230. (build-system r-build-system)
  10231. (propagated-inputs
  10232. `(("r-annotationdbi" ,r-annotationdbi)
  10233. ("r-biobase" ,r-biobase)
  10234. ("r-biocgenerics" ,r-biocgenerics)
  10235. ("r-biomart" ,r-biomart)
  10236. ("r-biostrings" ,r-biostrings)
  10237. ("r-biovizbase" ,r-biovizbase)
  10238. ("r-bsgenome" ,r-bsgenome)
  10239. ("r-digest" ,r-digest)
  10240. ("r-genomeinfodb" ,r-genomeinfodb)
  10241. ("r-genomicalignments" ,r-genomicalignments)
  10242. ("r-genomicfeatures" ,r-genomicfeatures)
  10243. ("r-genomicranges" ,r-genomicranges)
  10244. ("r-iranges" ,r-iranges)
  10245. ("r-lattice" ,r-lattice)
  10246. ("r-latticeextra" ,r-latticeextra)
  10247. ("r-matrixstats" ,r-matrixstats)
  10248. ("r-rcolorbrewer" ,r-rcolorbrewer)
  10249. ("r-rsamtools" ,r-rsamtools)
  10250. ("r-rtracklayer" ,r-rtracklayer)
  10251. ("r-s4vectors" ,r-s4vectors)
  10252. ("r-xvector" ,r-xvector)))
  10253. (home-page "https://bioconductor.org/packages/Gviz")
  10254. (synopsis "Plotting data and annotation information along genomic coordinates")
  10255. (description
  10256. "Genomic data analyses requires integrated visualization of known genomic
  10257. information and new experimental data. Gviz uses the biomaRt and the
  10258. rtracklayer packages to perform live annotation queries to Ensembl and UCSC
  10259. and translates this to e.g. gene/transcript structures in viewports of the
  10260. grid graphics package. This results in genomic information plotted together
  10261. with your data.")
  10262. (license license:artistic2.0)))
  10263. (define-public r-gwascat
  10264. (package
  10265. (name "r-gwascat")
  10266. (version "2.14.0")
  10267. (source
  10268. (origin
  10269. (method url-fetch)
  10270. (uri (bioconductor-uri "gwascat" version))
  10271. (sha256
  10272. (base32
  10273. "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
  10274. (build-system r-build-system)
  10275. (propagated-inputs
  10276. `(("r-annotationdbi" ,r-annotationdbi)
  10277. ("r-annotationhub" ,r-annotationhub)
  10278. ("r-biocgenerics" ,r-biocgenerics)
  10279. ("r-biostrings" ,r-biostrings)
  10280. ("r-genomeinfodb" ,r-genomeinfodb)
  10281. ("r-genomicfeatures" ,r-genomicfeatures)
  10282. ("r-genomicranges" ,r-genomicranges)
  10283. ("r-ggbio" ,r-ggbio)
  10284. ("r-ggplot2" ,r-ggplot2)
  10285. ("r-gqtlstats" ,r-gqtlstats)
  10286. ("r-graph" ,r-graph)
  10287. ("r-gviz" ,r-gviz)
  10288. ("r-homo-sapiens" ,r-homo-sapiens)
  10289. ("r-iranges" ,r-iranges)
  10290. ("r-rsamtools" ,r-rsamtools)
  10291. ("r-rtracklayer" ,r-rtracklayer)
  10292. ("r-s4vectors" ,r-s4vectors)
  10293. ("r-snpstats" ,r-snpstats)
  10294. ("r-summarizedexperiment" ,r-summarizedexperiment)
  10295. ("r-variantannotation" ,r-variantannotation)))
  10296. (home-page "https://bioconductor.org/packages/gwascat")
  10297. (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
  10298. (description
  10299. "This package provides tools for representing and modeling data in the
  10300. EMBL-EBI GWAS catalog.")
  10301. (license license:artistic2.0)))
  10302. (define-public r-sushi
  10303. (package
  10304. (name "r-sushi")
  10305. (version "1.20.0")
  10306. (source (origin
  10307. (method url-fetch)
  10308. (uri (bioconductor-uri "Sushi" version))
  10309. (sha256
  10310. (base32
  10311. "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
  10312. (properties `((upstream-name . "Sushi")))
  10313. (build-system r-build-system)
  10314. (propagated-inputs
  10315. `(("r-biomart" ,r-biomart)
  10316. ("r-zoo" ,r-zoo)))
  10317. (home-page "https://bioconductor.org/packages/Sushi")
  10318. (synopsis "Tools for visualizing genomics data")
  10319. (description
  10320. "This package provides flexible, quantitative, and integrative genomic
  10321. visualizations for publication-quality multi-panel figures.")
  10322. (license license:gpl2+)))
  10323. (define-public r-fithic
  10324. (package
  10325. (name "r-fithic")
  10326. (version "1.8.0")
  10327. (source (origin
  10328. (method url-fetch)
  10329. (uri (bioconductor-uri "FitHiC" version))
  10330. (sha256
  10331. (base32
  10332. "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
  10333. (properties `((upstream-name . "FitHiC")))
  10334. (build-system r-build-system)
  10335. (propagated-inputs
  10336. `(("r-data-table" ,r-data-table)
  10337. ("r-fdrtool" ,r-fdrtool)
  10338. ("r-rcpp" ,r-rcpp)))
  10339. (home-page "https://bioconductor.org/packages/FitHiC")
  10340. (synopsis "Confidence estimation for intra-chromosomal contact maps")
  10341. (description
  10342. "Fit-Hi-C is a tool for assigning statistical confidence estimates to
  10343. intra-chromosomal contact maps produced by genome-wide genome architecture
  10344. assays such as Hi-C.")
  10345. (license license:gpl2+)))
  10346. (define-public r-hitc
  10347. (package
  10348. (name "r-hitc")
  10349. (version "1.26.0")
  10350. (source (origin
  10351. (method url-fetch)
  10352. (uri (bioconductor-uri "HiTC" version))
  10353. (sha256
  10354. (base32
  10355. "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
  10356. (properties `((upstream-name . "HiTC")))
  10357. (build-system r-build-system)
  10358. (propagated-inputs
  10359. `(("r-biostrings" ,r-biostrings)
  10360. ("r-genomeinfodb" ,r-genomeinfodb)
  10361. ("r-genomicranges" ,r-genomicranges)
  10362. ("r-iranges" ,r-iranges)
  10363. ("r-matrix" ,r-matrix)
  10364. ("r-rcolorbrewer" ,r-rcolorbrewer)
  10365. ("r-rtracklayer" ,r-rtracklayer)))
  10366. (home-page "https://bioconductor.org/packages/HiTC")
  10367. (synopsis "High throughput chromosome conformation capture analysis")
  10368. (description
  10369. "The HiTC package was developed to explore high-throughput \"C\" data
  10370. such as 5C or Hi-C. Dedicated R classes as well as standard methods for
  10371. quality controls, normalization, visualization, and further analysis are also
  10372. provided.")
  10373. (license license:artistic2.0)))
  10374. (define-public r-qvalue
  10375. (package
  10376. (name "r-qvalue")
  10377. (version "2.14.1")
  10378. (source
  10379. (origin
  10380. (method url-fetch)
  10381. (uri (bioconductor-uri "qvalue" version))
  10382. (sha256
  10383. (base32
  10384. "0kxavzm1j2mk26qicmjm90nxx4w5h3dxighzks7wzihay3k8cysc"))))
  10385. (build-system r-build-system)
  10386. (propagated-inputs
  10387. `(("r-ggplot2" ,r-ggplot2)
  10388. ("r-reshape2" ,r-reshape2)))
  10389. (home-page "http://github.com/jdstorey/qvalue")
  10390. (synopsis "Q-value estimation for false discovery rate control")
  10391. (description
  10392. "This package takes a list of p-values resulting from the simultaneous
  10393. testing of many hypotheses and estimates their q-values and local @dfn{false
  10394. discovery rate} (FDR) values. The q-value of a test measures the proportion
  10395. of false positives incurred when that particular test is called significant.
  10396. The local FDR measures the posterior probability the null hypothesis is true
  10397. given the test's p-value. Various plots are automatically generated, allowing
  10398. one to make sensible significance cut-offs. The software can be applied to
  10399. problems in genomics, brain imaging, astrophysics, and data mining.")
  10400. ;; Any version of the LGPL.
  10401. (license license:lgpl3+)))
  10402. (define-public r-hdf5array
  10403. (package
  10404. (name "r-hdf5array")
  10405. (version "1.10.1")
  10406. (source
  10407. (origin
  10408. (method url-fetch)
  10409. (uri (bioconductor-uri "HDF5Array" version))
  10410. (sha256
  10411. (base32
  10412. "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
  10413. (properties `((upstream-name . "HDF5Array")))
  10414. (build-system r-build-system)
  10415. (propagated-inputs
  10416. `(("r-biocgenerics" ,r-biocgenerics)
  10417. ("r-delayedarray" ,r-delayedarray)
  10418. ("r-iranges" ,r-iranges)
  10419. ("r-rhdf5" ,r-rhdf5)
  10420. ("r-s4vectors" ,r-s4vectors)))
  10421. (home-page "https://bioconductor.org/packages/HDF5Array")
  10422. (synopsis "HDF5 back end for DelayedArray objects")
  10423. (description "This package provides an array-like container for convenient
  10424. access and manipulation of HDF5 datasets. It supports delayed operations and
  10425. block processing.")
  10426. (license license:artistic2.0)))
  10427. (define-public r-rhdf5lib
  10428. (package
  10429. (name "r-rhdf5lib")
  10430. (version "1.4.2")
  10431. (source
  10432. (origin
  10433. (method url-fetch)
  10434. (uri (bioconductor-uri "Rhdf5lib" version))
  10435. (sha256
  10436. (base32
  10437. "06bxd3wz8lrvh2hzvmjpdv4lvzj5lz9353bw5b3zb98cb8w9r2j5"))
  10438. (modules '((guix build utils)))
  10439. (snippet
  10440. '(begin
  10441. ;; Delete bundled binaries
  10442. (delete-file-recursively "src/winlib/")
  10443. #t))))
  10444. (properties `((upstream-name . "Rhdf5lib")))
  10445. (build-system r-build-system)
  10446. (arguments
  10447. `(#:phases
  10448. (modify-phases %standard-phases
  10449. (add-after 'unpack 'do-not-use-bundled-hdf5
  10450. (lambda* (#:key inputs #:allow-other-keys)
  10451. (for-each delete-file '("configure" "configure.ac"))
  10452. ;; Do not make other packages link with the proprietary libsz.
  10453. (substitute* "R/zzz.R"
  10454. (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
  10455. "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
  10456. (("'%s/libhdf5.a %s/libsz.a -lz'")
  10457. "'%s/libhdf5.a %s/libhdf5.a -lz'"))
  10458. (with-directory-excursion "src"
  10459. (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
  10460. (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
  10461. "hdf5")
  10462. ;; Remove timestamp and host system information to make
  10463. ;; the build reproducible.
  10464. (substitute* "hdf5/src/libhdf5.settings.in"
  10465. (("Configured on: @CONFIG_DATE@")
  10466. "Configured on: Guix")
  10467. (("Uname information:.*")
  10468. "Uname information: Linux\n")
  10469. ;; Remove unnecessary store reference.
  10470. (("C Compiler:.*")
  10471. "C Compiler: GCC\n"))
  10472. (rename-file "Makevars.in" "Makevars")
  10473. (substitute* "Makevars"
  10474. (("HDF5_CXX_LIB=.*")
  10475. (string-append "HDF5_CXX_LIB="
  10476. (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
  10477. (("HDF5_LIB=.*")
  10478. (string-append "HDF5_LIB="
  10479. (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
  10480. (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
  10481. (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
  10482. ;; szip is non-free software
  10483. (("cp \\$\\{SZIP_LIB\\}.*") "")
  10484. (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
  10485. #t)))))
  10486. (inputs
  10487. `(("zlib" ,zlib)))
  10488. (propagated-inputs
  10489. `(("hdf5" ,hdf5-1.10)))
  10490. (native-inputs
  10491. `(("hdf5-source" ,(package-source hdf5-1.10))))
  10492. (home-page "https://bioconductor.org/packages/Rhdf5lib")
  10493. (synopsis "HDF5 library as an R package")
  10494. (description "This package provides C and C++ HDF5 libraries for use in R
  10495. packages.")
  10496. (license license:artistic2.0)))
  10497. (define-public r-beachmat
  10498. (package
  10499. (name "r-beachmat")
  10500. (version "1.4.0")
  10501. (source
  10502. (origin
  10503. (method url-fetch)
  10504. (uri (bioconductor-uri "beachmat" version))
  10505. (sha256
  10506. (base32
  10507. "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
  10508. (build-system r-build-system)
  10509. (inputs
  10510. `(("hdf5" ,hdf5)
  10511. ("zlib" ,zlib)))
  10512. (propagated-inputs
  10513. `(("r-biocgenerics" ,r-biocgenerics)
  10514. ("r-delayedarray" ,r-delayedarray)
  10515. ("r-hdf5array" ,r-hdf5array)
  10516. ("r-rcpp" ,r-rcpp)
  10517. ("r-rhdf5" ,r-rhdf5)
  10518. ("r-rhdf5lib" ,r-rhdf5lib)))
  10519. (home-page "https://bioconductor.org/packages/beachmat")
  10520. (synopsis "Compiling Bioconductor to handle each matrix type")
  10521. (description "This package provides a consistent C++ class interface for a
  10522. variety of commonly used matrix types, including sparse and HDF5-backed
  10523. matrices.")
  10524. (license license:gpl3)))
  10525. (define-public r-singlecellexperiment
  10526. (package
  10527. (name "r-singlecellexperiment")
  10528. (version "1.4.1")
  10529. (source
  10530. (origin
  10531. (method url-fetch)
  10532. (uri (bioconductor-uri "SingleCellExperiment" version))
  10533. (sha256
  10534. (base32
  10535. "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
  10536. (properties
  10537. `((upstream-name . "SingleCellExperiment")))
  10538. (build-system r-build-system)
  10539. (propagated-inputs
  10540. `(("r-biocgenerics" ,r-biocgenerics)
  10541. ("r-s4vectors" ,r-s4vectors)
  10542. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  10543. (home-page "https://bioconductor.org/packages/SingleCellExperiment")
  10544. (synopsis "S4 classes for single cell data")
  10545. (description "This package defines an S4 class for storing data from
  10546. single-cell experiments. This includes specialized methods to store and
  10547. retrieve spike-in information, dimensionality reduction coordinates and size
  10548. factors for each cell, along with the usual metadata for genes and
  10549. libraries.")
  10550. (license license:gpl3)))
  10551. (define-public r-scater
  10552. (package
  10553. (name "r-scater")
  10554. (version "1.10.1")
  10555. (source (origin
  10556. (method url-fetch)
  10557. (uri (bioconductor-uri "scater" version))
  10558. (sha256
  10559. (base32
  10560. "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
  10561. (build-system r-build-system)
  10562. (propagated-inputs
  10563. `(("r-beachmat" ,r-beachmat)
  10564. ("r-biocgenerics" ,r-biocgenerics)
  10565. ("r-biocparallel" ,r-biocparallel)
  10566. ("r-delayedarray" ,r-delayedarray)
  10567. ("r-delayedmatrixstats" ,r-delayedmatrixstats)
  10568. ("r-dplyr" ,r-dplyr)
  10569. ("r-ggbeeswarm" ,r-ggbeeswarm)
  10570. ("r-ggplot2" ,r-ggplot2)
  10571. ("r-matrix" ,r-matrix)
  10572. ("r-plyr" ,r-plyr)
  10573. ("r-rcpp" ,r-rcpp)
  10574. ("r-reshape2" ,r-reshape2)
  10575. ("r-rhdf5lib" ,r-rhdf5lib)
  10576. ("r-s4vectors" ,r-s4vectors)
  10577. ("r-singlecellexperiment" ,r-singlecellexperiment)
  10578. ("r-summarizedexperiment" ,r-summarizedexperiment)
  10579. ("r-viridis" ,r-viridis)))
  10580. (home-page "https://github.com/davismcc/scater")
  10581. (synopsis "Single-cell analysis toolkit for gene expression data in R")
  10582. (description "This package provides a collection of tools for doing
  10583. various analyses of single-cell RNA-seq gene expression data, with a focus on
  10584. quality control.")
  10585. (license license:gpl2+)))
  10586. (define-public r-scran
  10587. (package
  10588. (name "r-scran")
  10589. (version "1.10.2")
  10590. (source
  10591. (origin
  10592. (method url-fetch)
  10593. (uri (bioconductor-uri "scran" version))
  10594. (sha256
  10595. (base32
  10596. "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
  10597. (build-system r-build-system)
  10598. (propagated-inputs
  10599. `(("r-beachmat" ,r-beachmat)
  10600. ("r-biocgenerics" ,r-biocgenerics)
  10601. ("r-biocneighbors" ,r-biocneighbors)
  10602. ("r-biocparallel" ,r-biocparallel)
  10603. ("r-delayedarray" ,r-delayedarray)
  10604. ("r-delayedmatrixstats" ,r-delayedmatrixstats)
  10605. ("r-dynamictreecut" ,r-dynamictreecut)
  10606. ("r-edger" ,r-edger)
  10607. ("r-igraph" ,r-igraph)
  10608. ("r-limma" ,r-limma)
  10609. ("r-matrix" ,r-matrix)
  10610. ("r-rcpp" ,r-rcpp)
  10611. ("r-rhdf5lib" ,r-rhdf5lib)
  10612. ("r-s4vectors" ,r-s4vectors)
  10613. ("r-scater" ,r-scater)
  10614. ("r-singlecellexperiment" ,r-singlecellexperiment)
  10615. ("r-statmod" ,r-statmod)
  10616. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  10617. (home-page "https://bioconductor.org/packages/scran")
  10618. (synopsis "Methods for single-cell RNA-Seq data analysis")
  10619. (description "This package implements a variety of low-level analyses of
  10620. single-cell RNA-seq data. Methods are provided for normalization of
  10621. cell-specific biases, assignment of cell cycle phase, and detection of highly
  10622. variable and significantly correlated genes.")
  10623. (license license:gpl3)))
  10624. (define-public r-delayedmatrixstats
  10625. (package
  10626. (name "r-delayedmatrixstats")
  10627. (version "1.4.0")
  10628. (source
  10629. (origin
  10630. (method url-fetch)
  10631. (uri (bioconductor-uri "DelayedMatrixStats" version))
  10632. (sha256
  10633. (base32
  10634. "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
  10635. (properties
  10636. `((upstream-name . "DelayedMatrixStats")))
  10637. (build-system r-build-system)
  10638. (propagated-inputs
  10639. `(("r-biocparallel" ,r-biocparallel)
  10640. ("r-delayedarray" ,r-delayedarray)
  10641. ("r-hdf5array" ,r-hdf5array)
  10642. ("r-iranges" ,r-iranges)
  10643. ("r-matrix" ,r-matrix)
  10644. ("r-matrixstats" ,r-matrixstats)
  10645. ("r-s4vectors" ,r-s4vectors)))
  10646. (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
  10647. (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
  10648. (description
  10649. "This package provides a port of the @code{matrixStats} API for use with
  10650. @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
  10651. contains high-performing functions operating on rows and columns of
  10652. @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
  10653. @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
  10654. are optimized per data type and for subsetted calculations such that both
  10655. memory usage and processing time is minimized.")
  10656. (license license:expat)))
  10657. (define-public r-phangorn
  10658. (package
  10659. (name "r-phangorn")
  10660. (version "2.4.0")
  10661. (source
  10662. (origin
  10663. (method url-fetch)
  10664. (uri (cran-uri "phangorn" version))
  10665. (sha256
  10666. (base32
  10667. "0xc8k552nxczy19jr0xjjagrzc8x6lafasgk2c099ls8bc1yml1i"))))
  10668. (build-system r-build-system)
  10669. (propagated-inputs
  10670. `(("r-ape" ,r-ape)
  10671. ("r-fastmatch" ,r-fastmatch)
  10672. ("r-igraph" ,r-igraph)
  10673. ("r-magrittr" ,r-magrittr)
  10674. ("r-matrix" ,r-matrix)
  10675. ("r-quadprog" ,r-quadprog)
  10676. ("r-rcpp" ,r-rcpp)))
  10677. (home-page "https://github.com/KlausVigo/phangorn")
  10678. (synopsis "Phylogenetic analysis in R")
  10679. (description
  10680. "Phangorn is a package for phylogenetic analysis in R. It supports
  10681. estimation of phylogenetic trees and networks using Maximum Likelihood,
  10682. Maximum Parsimony, distance methods and Hadamard conjugation.")
  10683. (license license:gpl2+)))
  10684. (define-public r-dropbead
  10685. (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
  10686. (revision "2"))
  10687. (package
  10688. (name "r-dropbead")
  10689. (version (string-append "0-" revision "." (string-take commit 7)))
  10690. (source
  10691. (origin
  10692. (method git-fetch)
  10693. (uri (git-reference
  10694. (url "https://github.com/rajewsky-lab/dropbead.git")
  10695. (commit commit)))
  10696. (file-name (git-file-name name version))
  10697. (sha256
  10698. (base32
  10699. "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
  10700. (build-system r-build-system)
  10701. (propagated-inputs
  10702. `(("r-ggplot2" ,r-ggplot2)
  10703. ("r-rcolorbrewer" ,r-rcolorbrewer)
  10704. ("r-gridextra" ,r-gridextra)
  10705. ("r-gplots" ,r-gplots)
  10706. ("r-plyr" ,r-plyr)))
  10707. (home-page "https://github.com/rajewsky-lab/dropbead")
  10708. (synopsis "Basic exploration and analysis of Drop-seq data")
  10709. (description "This package offers a quick and straight-forward way to
  10710. explore and perform basic analysis of single cell sequencing data coming from
  10711. droplet sequencing. It has been particularly tailored for Drop-seq.")
  10712. (license license:gpl3))))
  10713. (define htslib-for-sambamba
  10714. (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
  10715. (package
  10716. (inherit htslib)
  10717. (name "htslib-for-sambamba")
  10718. (version (string-append "1.3.1-1." (string-take commit 9)))
  10719. (source
  10720. (origin
  10721. (method git-fetch)
  10722. (uri (git-reference
  10723. (url "https://github.com/lomereiter/htslib.git")
  10724. (commit commit)))
  10725. (file-name (string-append "htslib-" version "-checkout"))
  10726. (sha256
  10727. (base32
  10728. "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
  10729. (native-inputs
  10730. `(("autoconf" ,autoconf)
  10731. ("automake" ,automake)
  10732. ,@(package-native-inputs htslib))))))
  10733. (define-public sambamba
  10734. (package
  10735. (name "sambamba")
  10736. (version "0.6.8")
  10737. (source
  10738. (origin
  10739. (method git-fetch)
  10740. (uri (git-reference
  10741. (url "https://github.com/lomereiter/sambamba.git")
  10742. (commit (string-append "v" version))))
  10743. (file-name (string-append name "-" version "-checkout"))
  10744. (sha256
  10745. (base32
  10746. "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
  10747. (build-system gnu-build-system)
  10748. (arguments
  10749. `(#:tests? #f ; there is no test target
  10750. #:parallel-build? #f ; not supported
  10751. #:phases
  10752. (modify-phases %standard-phases
  10753. (delete 'configure)
  10754. (add-after 'unpack 'fix-ldc-version
  10755. (lambda _
  10756. (substitute* "gen_ldc_version_info.py"
  10757. (("/usr/bin/env.*") (which "python3")))
  10758. (substitute* "Makefile"
  10759. ;; We use ldc2 instead of ldmd2 to compile sambamba.
  10760. (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
  10761. #t))
  10762. (add-after 'unpack 'place-biod-and-undead
  10763. (lambda* (#:key inputs #:allow-other-keys)
  10764. (copy-recursively (assoc-ref inputs "biod") "BioD")
  10765. (copy-recursively (assoc-ref inputs "undead") "undeaD")
  10766. #t))
  10767. (add-after 'unpack 'unbundle-prerequisites
  10768. (lambda _
  10769. (substitute* "Makefile"
  10770. (("htslib/libhts.a lz4/lib/liblz4.a")
  10771. "-L-lhts -L-llz4")
  10772. ((" lz4-static htslib-static") ""))
  10773. #t))
  10774. (replace 'install
  10775. (lambda* (#:key outputs #:allow-other-keys)
  10776. (let* ((out (assoc-ref outputs "out"))
  10777. (bin (string-append out "/bin")))
  10778. (mkdir-p bin)
  10779. (install-file "bin/sambamba" bin)
  10780. #t))))))
  10781. (native-inputs
  10782. `(("ldc" ,ldc)
  10783. ("rdmd" ,rdmd)
  10784. ("python" ,python)
  10785. ("biod"
  10786. ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
  10787. (origin
  10788. (method git-fetch)
  10789. (uri (git-reference
  10790. (url "https://github.com/biod/BioD.git")
  10791. (commit commit)))
  10792. (file-name (string-append "biod-"
  10793. (string-take commit 9)
  10794. "-checkout"))
  10795. (sha256
  10796. (base32
  10797. "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
  10798. ("undead"
  10799. ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
  10800. (origin
  10801. (method git-fetch)
  10802. (uri (git-reference
  10803. (url "https://github.com/biod/undeaD.git")
  10804. (commit commit)))
  10805. (file-name (string-append "undead-"
  10806. (string-take commit 9)
  10807. "-checkout"))
  10808. (sha256
  10809. (base32
  10810. "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
  10811. (inputs
  10812. `(("lz4" ,lz4)
  10813. ("htslib" ,htslib-for-sambamba)))
  10814. (home-page "http://lomereiter.github.io/sambamba")
  10815. (synopsis "Tools for working with SAM/BAM data")
  10816. (description "Sambamba is a high performance modern robust and
  10817. fast tool (and library), written in the D programming language, for
  10818. working with SAM and BAM files. Current parallelised functionality is
  10819. an important subset of samtools functionality, including view, index,
  10820. sort, markdup, and depth.")
  10821. (license license:gpl2+)))
  10822. (define-public ritornello
  10823. (package
  10824. (name "ritornello")
  10825. (version "2.0.1")
  10826. (source (origin
  10827. (method git-fetch)
  10828. (uri (git-reference
  10829. (url "https://github.com/KlugerLab/Ritornello.git")
  10830. (commit (string-append "v" version))))
  10831. (file-name (git-file-name name version))
  10832. (sha256
  10833. (base32
  10834. "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
  10835. (build-system gnu-build-system)
  10836. (arguments
  10837. `(#:tests? #f ; there are no tests
  10838. #:phases
  10839. (modify-phases %standard-phases
  10840. (add-after 'unpack 'patch-samtools-references
  10841. (lambda* (#:key inputs #:allow-other-keys)
  10842. (substitute* '("src/SamStream.h"
  10843. "src/FLD.cpp")
  10844. (("<sam.h>") "<samtools/sam.h>"))
  10845. #t))
  10846. (delete 'configure)
  10847. (replace 'install
  10848. (lambda* (#:key inputs outputs #:allow-other-keys)
  10849. (let* ((out (assoc-ref outputs "out"))
  10850. (bin (string-append out "/bin/")))
  10851. (mkdir-p bin)
  10852. (install-file "bin/Ritornello" bin)
  10853. #t))))))
  10854. (inputs
  10855. `(("samtools" ,samtools-0.1)
  10856. ("fftw" ,fftw)
  10857. ("boost" ,boost)
  10858. ("zlib" ,zlib)))
  10859. (home-page "https://github.com/KlugerLab/Ritornello")
  10860. (synopsis "Control-free peak caller for ChIP-seq data")
  10861. (description "Ritornello is a ChIP-seq peak calling algorithm based on
  10862. signal processing that can accurately call binding events without the need to
  10863. do a pair total DNA input or IgG control sample. It has been tested for use
  10864. with narrow binding events such as transcription factor ChIP-seq.")
  10865. (license license:gpl3+)))
  10866. (define-public trim-galore
  10867. (package
  10868. (name "trim-galore")
  10869. (version "0.4.5")
  10870. (source
  10871. (origin
  10872. (method git-fetch)
  10873. (uri (git-reference
  10874. (url "https://github.com/FelixKrueger/TrimGalore.git")
  10875. (commit version)))
  10876. (file-name (string-append name "-" version "-checkout"))
  10877. (sha256
  10878. (base32
  10879. "0x5892l48c816pf00wmnz5vq0zq6170d3xc8zrxncd4jcz7h1p71"))))
  10880. (build-system gnu-build-system)
  10881. (arguments
  10882. `(#:tests? #f ; no tests
  10883. #:phases
  10884. (modify-phases %standard-phases
  10885. (delete 'configure)
  10886. (delete 'build)
  10887. (add-after 'unpack 'hardcode-tool-references
  10888. (lambda* (#:key inputs #:allow-other-keys)
  10889. (substitute* "trim_galore"
  10890. (("\\$path_to_cutadapt = 'cutadapt'")
  10891. (string-append "$path_to_cutadapt = '"
  10892. (assoc-ref inputs "cutadapt")
  10893. "/bin/cutadapt'"))
  10894. (("\\| gzip")
  10895. (string-append "| "
  10896. (assoc-ref inputs "gzip")
  10897. "/bin/gzip"))
  10898. (("\"gunzip")
  10899. (string-append "\""
  10900. (assoc-ref inputs "gzip")
  10901. "/bin/gunzip")))
  10902. #t))
  10903. (replace 'install
  10904. (lambda* (#:key outputs #:allow-other-keys)
  10905. (let ((bin (string-append (assoc-ref outputs "out")
  10906. "/bin")))
  10907. (mkdir-p bin)
  10908. (install-file "trim_galore" bin)
  10909. #t))))))
  10910. (inputs
  10911. `(("gzip" ,gzip)
  10912. ("perl" ,perl)
  10913. ("cutadapt" ,cutadapt)))
  10914. (native-inputs
  10915. `(("unzip" ,unzip)))
  10916. (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
  10917. (synopsis "Wrapper around Cutadapt and FastQC")
  10918. (description "Trim Galore! is a wrapper script to automate quality and
  10919. adapter trimming as well as quality control, with some added functionality to
  10920. remove biased methylation positions for RRBS sequence files.")
  10921. (license license:gpl3+)))
  10922. (define-public gess
  10923. (package
  10924. (name "gess")
  10925. (version "1.0")
  10926. (source (origin
  10927. (method url-fetch)
  10928. (uri (string-append "http://compbio.uthscsa.edu/"
  10929. "GESS_Web/files/"
  10930. "gess-" version ".src.tar.gz"))
  10931. (sha256
  10932. (base32
  10933. "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
  10934. (build-system gnu-build-system)
  10935. (arguments
  10936. `(#:tests? #f ; no tests
  10937. #:phases
  10938. (modify-phases %standard-phases
  10939. (delete 'configure)
  10940. (delete 'build)
  10941. (replace 'install
  10942. (lambda* (#:key inputs outputs #:allow-other-keys)
  10943. (let* ((python (assoc-ref inputs "python"))
  10944. (out (assoc-ref outputs "out"))
  10945. (bin (string-append out "/bin/"))
  10946. (target (string-append
  10947. out "/lib/python"
  10948. ,(version-major+minor
  10949. (package-version python))
  10950. "/site-packages/gess/")))
  10951. (mkdir-p target)
  10952. (copy-recursively "." target)
  10953. ;; Make GESS.py executable
  10954. (chmod (string-append target "GESS.py") #o555)
  10955. ;; Add Python shebang to the top and make Matplotlib
  10956. ;; usable.
  10957. (substitute* (string-append target "GESS.py")
  10958. (("\"\"\"Description:" line)
  10959. (string-append "#!" (which "python") "
  10960. import matplotlib
  10961. matplotlib.use('Agg')
  10962. " line)))
  10963. ;; Make sure GESS has all modules in its path
  10964. (wrap-program (string-append target "GESS.py")
  10965. `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
  10966. (mkdir-p bin)
  10967. (symlink (string-append target "GESS.py")
  10968. (string-append bin "GESS.py"))
  10969. #t))))))
  10970. (inputs
  10971. `(("python" ,python-2)
  10972. ("python2-pysam" ,python2-pysam)
  10973. ("python2-scipy" ,python2-scipy)
  10974. ("python2-numpy" ,python2-numpy)
  10975. ("python2-networkx" ,python2-networkx)
  10976. ("python2-biopython" ,python2-biopython)))
  10977. (home-page "http://compbio.uthscsa.edu/GESS_Web/")
  10978. (synopsis "Detect exon-skipping events from raw RNA-seq data")
  10979. (description
  10980. "GESS is an implementation of a novel computational method to detect de
  10981. novo exon-skipping events directly from raw RNA-seq data without the prior
  10982. knowledge of gene annotation information. GESS stands for the graph-based
  10983. exon-skipping scanner detection scheme.")
  10984. (license license:bsd-3)))
  10985. (define-public phylip
  10986. (package
  10987. (name "phylip")
  10988. (version "3.696")
  10989. (source
  10990. (origin
  10991. (method url-fetch)
  10992. (uri (string-append "http://evolution.gs.washington.edu/phylip/"
  10993. "download/phylip-" version ".tar.gz"))
  10994. (sha256
  10995. (base32
  10996. "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
  10997. (build-system gnu-build-system)
  10998. (arguments
  10999. `(#:tests? #f ; no check target
  11000. #:make-flags (list "-f" "Makefile.unx" "install")
  11001. #:parallel-build? #f ; not supported
  11002. #:phases
  11003. (modify-phases %standard-phases
  11004. (add-after 'unpack 'enter-dir
  11005. (lambda _ (chdir "src") #t))
  11006. (delete 'configure)
  11007. (replace 'install
  11008. (lambda* (#:key inputs outputs #:allow-other-keys)
  11009. (let ((target (string-append (assoc-ref outputs "out")
  11010. "/bin")))
  11011. (mkdir-p target)
  11012. (for-each (lambda (file)
  11013. (install-file file target))
  11014. (find-files "../exe" ".*")))
  11015. #t)))))
  11016. (home-page "http://evolution.genetics.washington.edu/phylip/")
  11017. (synopsis "Tools for inferring phylogenies")
  11018. (description "PHYLIP (the PHYLogeny Inference Package) is a package of
  11019. programs for inferring phylogenies (evolutionary trees).")
  11020. (license license:bsd-2)))
  11021. (define-public imp
  11022. (package
  11023. (name "imp")
  11024. (version "2.6.2")
  11025. (source
  11026. (origin
  11027. (method url-fetch)
  11028. (uri (string-append "https://integrativemodeling.org/"
  11029. version "/download/imp-" version ".tar.gz"))
  11030. (sha256
  11031. (base32
  11032. "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
  11033. (build-system cmake-build-system)
  11034. (arguments
  11035. `(;; FIXME: Some tests fail because they produce warnings, others fail
  11036. ;; because the PYTHONPATH does not include the modeller's directory.
  11037. #:tests? #f))
  11038. (inputs
  11039. `(("boost" ,boost)
  11040. ("gsl" ,gsl)
  11041. ("swig" ,swig)
  11042. ("hdf5" ,hdf5)
  11043. ("fftw" ,fftw)
  11044. ("python" ,python-2)))
  11045. (propagated-inputs
  11046. `(("python2-numpy" ,python2-numpy)
  11047. ("python2-scipy" ,python2-scipy)
  11048. ("python2-pandas" ,python2-pandas)
  11049. ("python2-scikit-learn" ,python2-scikit-learn)
  11050. ("python2-networkx" ,python2-networkx)))
  11051. (home-page "https://integrativemodeling.org")
  11052. (synopsis "Integrative modeling platform")
  11053. (description "IMP's broad goal is to contribute to a comprehensive
  11054. structural characterization of biomolecules ranging in size and complexity
  11055. from small peptides to large macromolecular assemblies, by integrating data
  11056. from diverse biochemical and biophysical experiments. IMP provides a C++ and
  11057. Python toolbox for solving complex modeling problems, and a number of
  11058. applications for tackling some common problems in a user-friendly way.")
  11059. ;; IMP is largely available under the GNU Lesser GPL; see the file
  11060. ;; COPYING.LGPL for the full text of this license. Some IMP modules are
  11061. ;; available under the GNU GPL (see the file COPYING.GPL).
  11062. (license (list license:lgpl2.1+
  11063. license:gpl3+))))
  11064. (define-public tadbit
  11065. (package
  11066. (name "tadbit")
  11067. (version "0.2.0")
  11068. (source (origin
  11069. (method git-fetch)
  11070. (uri (git-reference
  11071. (url "https://github.com/3DGenomes/TADbit.git")
  11072. (commit (string-append "v" version))))
  11073. (file-name (git-file-name name version))
  11074. (sha256
  11075. (base32
  11076. "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
  11077. (build-system python-build-system)
  11078. (arguments
  11079. `(;; Tests are included and must be run after installation, but
  11080. ;; they are incomplete and thus cannot be run.
  11081. #:tests? #f
  11082. #:python ,python-2
  11083. #:phases
  11084. (modify-phases %standard-phases
  11085. (add-after 'unpack 'fix-problems-with-setup.py
  11086. (lambda* (#:key outputs #:allow-other-keys)
  11087. ;; setup.py opens these files for writing
  11088. (chmod "_pytadbit/_version.py" #o664)
  11089. (chmod "README.rst" #o664)
  11090. ;; Don't attempt to install the bash completions to
  11091. ;; the home directory.
  11092. (rename-file "extras/.bash_completion"
  11093. "extras/tadbit")
  11094. (substitute* "setup.py"
  11095. (("\\(path.expanduser\\('~'\\)")
  11096. (string-append "(\""
  11097. (assoc-ref outputs "out")
  11098. "/etc/bash_completion.d\""))
  11099. (("extras/\\.bash_completion")
  11100. "extras/tadbit"))
  11101. #t)))))
  11102. (inputs
  11103. ;; TODO: add Chimera for visualization
  11104. `(("imp" ,imp)
  11105. ("mcl" ,mcl)
  11106. ("python2-scipy" ,python2-scipy)
  11107. ("python2-numpy" ,python2-numpy)
  11108. ("python2-matplotlib" ,python2-matplotlib)
  11109. ("python2-pysam" ,python2-pysam)))
  11110. (home-page "https://3dgenomes.github.io/TADbit/")
  11111. (synopsis "Analyze, model, and explore 3C-based data")
  11112. (description
  11113. "TADbit is a complete Python library to deal with all steps to analyze,
  11114. model, and explore 3C-based data. With TADbit the user can map FASTQ files to
  11115. obtain raw interaction binned matrices (Hi-C like matrices), normalize and
  11116. correct interaction matrices, identify and compare the so-called
  11117. @dfn{Topologically Associating Domains} (TADs), build 3D models from the
  11118. interaction matrices, and finally, extract structural properties from the
  11119. models. TADbit is complemented by TADkit for visualizing 3D models.")
  11120. (license license:gpl3+)))
  11121. (define-public kentutils
  11122. (package
  11123. (name "kentutils")
  11124. ;; 302.1.0 is out, but the only difference is the inclusion of
  11125. ;; pre-built binaries.
  11126. (version "302.0.0")
  11127. (source
  11128. (origin
  11129. (method git-fetch)
  11130. (uri (git-reference
  11131. (url "https://github.com/ENCODE-DCC/kentUtils.git")
  11132. (commit (string-append "v" version))))
  11133. (file-name (git-file-name name version))
  11134. (sha256
  11135. (base32
  11136. "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
  11137. (modules '((guix build utils)
  11138. (srfi srfi-26)
  11139. (ice-9 ftw)))
  11140. (snippet
  11141. '(begin
  11142. ;; Only the contents of the specified directories are free
  11143. ;; for all uses, so we remove the rest. "hg/autoSql" and
  11144. ;; "hg/autoXml" are nominally free, but they depend on a
  11145. ;; library that is built from the sources in "hg/lib",
  11146. ;; which is nonfree.
  11147. (let ((free (list "." ".."
  11148. "utils" "lib" "inc" "tagStorm"
  11149. "parasol" "htslib"))
  11150. (directory? (lambda (file)
  11151. (eq? 'directory (stat:type (stat file))))))
  11152. (for-each (lambda (file)
  11153. (and (directory? file)
  11154. (delete-file-recursively file)))
  11155. (map (cut string-append "src/" <>)
  11156. (scandir "src"
  11157. (lambda (file)
  11158. (not (member file free)))))))
  11159. ;; Only make the utils target, not the userApps target,
  11160. ;; because that requires libraries we won't build.
  11161. (substitute* "Makefile"
  11162. ((" userApps") " utils"))
  11163. ;; Only build libraries that are free.
  11164. (substitute* "src/makefile"
  11165. (("DIRS =.*") "DIRS =\n")
  11166. (("cd jkOwnLib.*") "")
  11167. ((" hgLib") "")
  11168. (("cd hg.*") ""))
  11169. (substitute* "src/utils/makefile"
  11170. ;; These tools depend on "jkhgap.a", which is part of the
  11171. ;; nonfree "src/hg/lib" directory.
  11172. (("raSqlQuery") "")
  11173. (("pslLiftSubrangeBlat") "")
  11174. ;; Do not build UCSC tools, which may require nonfree
  11175. ;; components.
  11176. (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
  11177. #t))))
  11178. (build-system gnu-build-system)
  11179. (arguments
  11180. `( ;; There is no global test target and the test target for
  11181. ;; individual tools depends on input files that are not
  11182. ;; included.
  11183. #:tests? #f
  11184. #:phases
  11185. (modify-phases %standard-phases
  11186. (add-after 'unpack 'fix-permissions
  11187. (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
  11188. (add-after 'unpack 'fix-paths
  11189. (lambda _
  11190. (substitute* "Makefile"
  11191. (("/bin/echo") (which "echo")))
  11192. #t))
  11193. (add-after 'unpack 'prepare-samtabix
  11194. (lambda* (#:key inputs #:allow-other-keys)
  11195. (copy-recursively (assoc-ref inputs "samtabix")
  11196. "samtabix")
  11197. #t))
  11198. (delete 'configure)
  11199. (replace 'install
  11200. (lambda* (#:key outputs #:allow-other-keys)
  11201. (let ((bin (string-append (assoc-ref outputs "out")
  11202. "/bin")))
  11203. (copy-recursively "bin" bin))
  11204. #t)))))
  11205. (native-inputs
  11206. `(("samtabix"
  11207. ,(origin
  11208. (method git-fetch)
  11209. (uri (git-reference
  11210. (url "http://genome-source.cse.ucsc.edu/samtabix.git")
  11211. (commit "10fd107909c1ac4d679299908be4262a012965ba")))
  11212. (sha256
  11213. (base32
  11214. "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
  11215. (inputs
  11216. `(("zlib" ,zlib)
  11217. ("tcsh" ,tcsh)
  11218. ("perl" ,perl)
  11219. ("libpng" ,libpng)
  11220. ("mariadb" ,mariadb)
  11221. ("openssl" ,openssl)))
  11222. (home-page "http://genome.cse.ucsc.edu/index.html")
  11223. (synopsis "Assorted bioinformatics utilities")
  11224. (description "This package provides the kentUtils, a selection of
  11225. bioinformatics utilities used in combination with the UCSC genome
  11226. browser.")
  11227. ;; Only a subset of the sources are released under a non-copyleft
  11228. ;; free software license. All other sources are removed in a
  11229. ;; snippet. See this bug report for an explanation of how the
  11230. ;; license statements apply:
  11231. ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
  11232. (license (license:non-copyleft
  11233. "http://genome.ucsc.edu/license/"
  11234. "The contents of this package are free for all uses."))))
  11235. (define-public f-seq
  11236. (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
  11237. (revision "1"))
  11238. (package
  11239. (name "f-seq")
  11240. (version (string-append "1.1-" revision "." (string-take commit 7)))
  11241. (source (origin
  11242. (method git-fetch)
  11243. (uri (git-reference
  11244. (url "https://github.com/aboyle/F-seq.git")
  11245. (commit commit)))
  11246. (file-name (string-append name "-" version))
  11247. (sha256
  11248. (base32
  11249. "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
  11250. (modules '((guix build utils)))
  11251. ;; Remove bundled Java library archives.
  11252. (snippet
  11253. '(begin
  11254. (for-each delete-file (find-files "lib" ".*"))
  11255. #t))))
  11256. (build-system ant-build-system)
  11257. (arguments
  11258. `(#:tests? #f ; no tests included
  11259. #:phases
  11260. (modify-phases %standard-phases
  11261. (replace 'install
  11262. (lambda* (#:key inputs outputs #:allow-other-keys)
  11263. (let* ((target (assoc-ref outputs "out"))
  11264. (bin (string-append target "/bin"))
  11265. (doc (string-append target "/share/doc/f-seq"))
  11266. (lib (string-append target "/lib")))
  11267. (mkdir-p target)
  11268. (mkdir-p doc)
  11269. (substitute* "bin/linux/fseq"
  11270. (("java") (which "java"))
  11271. (("\\$REALDIR/../lib/commons-cli-1.1.jar")
  11272. (string-append (assoc-ref inputs "java-commons-cli")
  11273. "/share/java/commons-cli.jar"))
  11274. (("REALDIR=.*")
  11275. (string-append "REALDIR=" bin "\n")))
  11276. (install-file "README.txt" doc)
  11277. (install-file "bin/linux/fseq" bin)
  11278. (install-file "build~/fseq.jar" lib)
  11279. (copy-recursively "lib" lib)
  11280. #t))))))
  11281. (inputs
  11282. `(("perl" ,perl)
  11283. ("java-commons-cli" ,java-commons-cli)))
  11284. (home-page "http://fureylab.web.unc.edu/software/fseq/")
  11285. (synopsis "Feature density estimator for high-throughput sequence tags")
  11286. (description
  11287. "F-Seq is a software package that generates a continuous tag sequence
  11288. density estimation allowing identification of biologically meaningful sites
  11289. such as transcription factor binding sites (ChIP-seq) or regions of open
  11290. chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
  11291. Browser.")
  11292. (license license:gpl3+))))
  11293. (define-public bismark
  11294. (package
  11295. (name "bismark")
  11296. (version "0.19.1")
  11297. (source
  11298. (origin
  11299. (method git-fetch)
  11300. (uri (git-reference
  11301. (url "https://github.com/FelixKrueger/Bismark.git")
  11302. (commit version)))
  11303. (file-name (string-append name "-" version "-checkout"))
  11304. (sha256
  11305. (base32
  11306. "0yb5l36slwg02fp4b1jdlplgljcsxgqfzvzihzdnphd87dghcc84"))
  11307. (snippet
  11308. '(begin
  11309. ;; highcharts.js is non-free software. The code is available under
  11310. ;; CC-BY-NC or proprietary licenses only.
  11311. (delete-file "bismark_sitrep/highcharts.js")
  11312. #t))))
  11313. (build-system perl-build-system)
  11314. (arguments
  11315. `(#:tests? #f ; there are no tests
  11316. #:phases
  11317. (modify-phases %standard-phases
  11318. (delete 'configure)
  11319. (delete 'build)
  11320. (replace 'install
  11321. (lambda* (#:key inputs outputs #:allow-other-keys)
  11322. (let* ((out (assoc-ref outputs "out"))
  11323. (bin (string-append out "/bin"))
  11324. (share (string-append out "/share/bismark"))
  11325. (docdir (string-append out "/share/doc/bismark"))
  11326. (docs '("Docs/Bismark_User_Guide.html"))
  11327. (scripts '("bismark"
  11328. "bismark_genome_preparation"
  11329. "bismark_methylation_extractor"
  11330. "bismark2bedGraph"
  11331. "bismark2report"
  11332. "coverage2cytosine"
  11333. "deduplicate_bismark"
  11334. "filter_non_conversion"
  11335. "bam2nuc"
  11336. "bismark2summary")))
  11337. (substitute* "bismark2report"
  11338. (("\\$RealBin/bismark_sitrep")
  11339. (string-append share "/bismark_sitrep")))
  11340. (mkdir-p share)
  11341. (mkdir-p docdir)
  11342. (mkdir-p bin)
  11343. (for-each (lambda (file) (install-file file bin))
  11344. scripts)
  11345. (for-each (lambda (file) (install-file file docdir))
  11346. docs)
  11347. (copy-recursively "Docs/Images" (string-append docdir "/Images"))
  11348. (copy-recursively "bismark_sitrep"
  11349. (string-append share "/bismark_sitrep"))
  11350. ;; Fix references to gunzip
  11351. (substitute* (map (lambda (file)
  11352. (string-append bin "/" file))
  11353. scripts)
  11354. (("\"gunzip -c")
  11355. (string-append "\"" (assoc-ref inputs "gzip")
  11356. "/bin/gunzip -c")))
  11357. #t))))))
  11358. (inputs
  11359. `(("gzip" ,gzip)))
  11360. (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
  11361. (synopsis "Map bisulfite treated sequence reads and analyze methylation")
  11362. (description "Bismark is a program to map bisulfite treated sequencing
  11363. reads to a genome of interest and perform methylation calls in a single step.
  11364. The output can be easily imported into a genome viewer, such as SeqMonk, and
  11365. enables a researcher to analyse the methylation levels of their samples
  11366. straight away. Its main features are:
  11367. @itemize
  11368. @item Bisulfite mapping and methylation calling in one single step
  11369. @item Supports single-end and paired-end read alignments
  11370. @item Supports ungapped and gapped alignments
  11371. @item Alignment seed length, number of mismatches etc are adjustable
  11372. @item Output discriminates between cytosine methylation in CpG, CHG
  11373. and CHH context
  11374. @end itemize\n")
  11375. (license license:gpl3+)))
  11376. (define-public paml
  11377. (package
  11378. (name "paml")
  11379. (version "4.9e")
  11380. (source (origin
  11381. (method url-fetch)
  11382. (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
  11383. "paml" version ".tgz"))
  11384. (sha256
  11385. (base32
  11386. "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
  11387. (modules '((guix build utils)))
  11388. ;; Remove Windows binaries
  11389. (snippet
  11390. '(begin
  11391. (for-each delete-file (find-files "." "\\.exe$"))
  11392. #t))))
  11393. (build-system gnu-build-system)
  11394. (arguments
  11395. `(#:tests? #f ; there are no tests
  11396. #:make-flags '("CC=gcc")
  11397. #:phases
  11398. (modify-phases %standard-phases
  11399. (replace 'configure
  11400. (lambda _
  11401. (substitute* "src/BFdriver.c"
  11402. (("/bin/bash") (which "bash")))
  11403. (chdir "src")
  11404. #t))
  11405. (replace 'install
  11406. (lambda* (#:key outputs #:allow-other-keys)
  11407. (let ((tools '("baseml" "basemlg" "codeml"
  11408. "pamp" "evolver" "yn00" "chi2"))
  11409. (bin (string-append (assoc-ref outputs "out") "/bin"))
  11410. (docdir (string-append (assoc-ref outputs "out")
  11411. "/share/doc/paml")))
  11412. (mkdir-p bin)
  11413. (for-each (lambda (file) (install-file file bin)) tools)
  11414. (copy-recursively "../doc" docdir)
  11415. #t))))))
  11416. (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
  11417. (synopsis "Phylogentic analysis by maximum likelihood")
  11418. (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
  11419. contains a few programs for model fitting and phylogenetic tree reconstruction
  11420. using nucleotide or amino-acid sequence data.")
  11421. ;; GPLv3 only
  11422. (license license:gpl3)))
  11423. (define-public kallisto
  11424. (package
  11425. (name "kallisto")
  11426. (version "0.44.0")
  11427. (source (origin
  11428. (method git-fetch)
  11429. (uri (git-reference
  11430. (url "https://github.com/pachterlab/kallisto.git")
  11431. (commit (string-append "v" version))))
  11432. (file-name (git-file-name name version))
  11433. (sha256
  11434. (base32
  11435. "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
  11436. (build-system cmake-build-system)
  11437. (arguments
  11438. `(#:tests? #f ; no "check" target
  11439. #:phases
  11440. (modify-phases %standard-phases
  11441. (add-after 'unpack 'do-not-use-bundled-htslib
  11442. (lambda _
  11443. (substitute* "CMakeLists.txt"
  11444. (("^ExternalProject_Add" m)
  11445. (string-append "if (NEVER)\n" m))
  11446. (("^\\)")
  11447. (string-append ")\nendif(NEVER)"))
  11448. (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
  11449. (string-append "# " m)))
  11450. (substitute* "src/CMakeLists.txt"
  11451. (("target_link_libraries\\(kallisto kallisto_core pthread \
  11452. \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
  11453. "target_link_libraries(kallisto kallisto_core pthread hts)")
  11454. (("include_directories\\(\\.\\./ext/htslib\\)") ""))
  11455. #t)))))
  11456. (inputs
  11457. `(("hdf5" ,hdf5)
  11458. ("htslib" ,htslib)
  11459. ("zlib" ,zlib)))
  11460. (home-page "http://pachterlab.github.io/kallisto/")
  11461. (synopsis "Near-optimal RNA-Seq quantification")
  11462. (description
  11463. "Kallisto is a program for quantifying abundances of transcripts from
  11464. RNA-Seq data, or more generally of target sequences using high-throughput
  11465. sequencing reads. It is based on the novel idea of pseudoalignment for
  11466. rapidly determining the compatibility of reads with targets, without the need
  11467. for alignment. Pseudoalignment of reads preserves the key information needed
  11468. for quantification, and kallisto is therefore not only fast, but also as
  11469. accurate as existing quantification tools.")
  11470. (license license:bsd-2)))
  11471. (define-public libgff
  11472. (package
  11473. (name "libgff")
  11474. (version "1.0")
  11475. (source (origin
  11476. (method git-fetch)
  11477. (uri (git-reference
  11478. (url "https://github.com/Kingsford-Group/libgff.git")
  11479. (commit (string-append "v" version))))
  11480. (file-name (git-file-name name version))
  11481. (sha256
  11482. (base32
  11483. "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
  11484. (build-system cmake-build-system)
  11485. (arguments `(#:tests? #f)) ; no tests included
  11486. (home-page "https://github.com/Kingsford-Group/libgff")
  11487. (synopsis "Parser library for reading/writing GFF files")
  11488. (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
  11489. code that is used in the Cufflinks codebase. The goal of this library is to
  11490. provide this functionality without the necessity of drawing in a heavy-weight
  11491. dependency like SeqAn.")
  11492. (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
  11493. (define-public libdivsufsort
  11494. (package
  11495. (name "libdivsufsort")
  11496. (version "2.0.1")
  11497. (source (origin
  11498. (method git-fetch)
  11499. (uri (git-reference
  11500. (url "https://github.com/y-256/libdivsufsort.git")
  11501. (commit version)))
  11502. (file-name (git-file-name name version))
  11503. (sha256
  11504. (base32
  11505. "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
  11506. (build-system cmake-build-system)
  11507. (arguments
  11508. '(#:tests? #f ; there are no tests
  11509. #:configure-flags
  11510. ;; Needed for rapmap and sailfish.
  11511. '("-DBUILD_DIVSUFSORT64=ON")))
  11512. (home-page "https://github.com/y-256/libdivsufsort")
  11513. (synopsis "Lightweight suffix-sorting library")
  11514. (description "libdivsufsort is a software library that implements a
  11515. lightweight suffix array construction algorithm. This library provides a
  11516. simple and an efficient C API to construct a suffix array and a
  11517. Burrows-Wheeler transformed string from a given string over a constant-size
  11518. alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
  11519. bytes of memory space, where n is the length of the string.")
  11520. (license license:expat)))
  11521. (define-public sailfish
  11522. (package
  11523. (name "sailfish")
  11524. (version "0.10.1")
  11525. (source (origin
  11526. (method git-fetch)
  11527. (uri (git-reference
  11528. (url "https://github.com/kingsfordgroup/sailfish.git")
  11529. (commit (string-append "v" version))))
  11530. (file-name (git-file-name name version))
  11531. (sha256
  11532. (base32
  11533. "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
  11534. (modules '((guix build utils)))
  11535. (snippet
  11536. '(begin
  11537. ;; Delete bundled headers for eigen3.
  11538. (delete-file-recursively "include/eigen3/")
  11539. #t))))
  11540. (build-system cmake-build-system)
  11541. (arguments
  11542. `(#:configure-flags
  11543. (list (string-append "-DBOOST_INCLUDEDIR="
  11544. (assoc-ref %build-inputs "boost")
  11545. "/include/")
  11546. (string-append "-DBOOST_LIBRARYDIR="
  11547. (assoc-ref %build-inputs "boost")
  11548. "/lib/")
  11549. (string-append "-DBoost_LIBRARIES="
  11550. "-lboost_iostreams "
  11551. "-lboost_filesystem "
  11552. "-lboost_system "
  11553. "-lboost_thread "
  11554. "-lboost_timer "
  11555. "-lboost_chrono "
  11556. "-lboost_program_options")
  11557. "-DBoost_FOUND=TRUE"
  11558. ;; Don't download RapMap---we already have it!
  11559. "-DFETCHED_RAPMAP=1")
  11560. ;; Tests must be run after installation and the location of the test
  11561. ;; data file must be overridden. But the tests fail. It looks like
  11562. ;; they are not really meant to be run.
  11563. #:tests? #f
  11564. #:phases
  11565. (modify-phases %standard-phases
  11566. ;; Boost cannot be found, even though it's right there.
  11567. (add-after 'unpack 'do-not-look-for-boost
  11568. (lambda* (#:key inputs #:allow-other-keys)
  11569. (substitute* "CMakeLists.txt"
  11570. (("find_package\\(Boost 1\\.53\\.0") "#"))
  11571. #t))
  11572. (add-after 'unpack 'do-not-assign-to-macro
  11573. (lambda _
  11574. (substitute* "include/spdlog/details/format.cc"
  11575. (("const unsigned CHAR_WIDTH = 1;") ""))
  11576. #t))
  11577. (add-after 'unpack 'prepare-rapmap
  11578. (lambda* (#:key inputs #:allow-other-keys)
  11579. (let ((src "external/install/src/rapmap/")
  11580. (include "external/install/include/rapmap/")
  11581. (rapmap (assoc-ref inputs "rapmap")))
  11582. (mkdir-p "/tmp/rapmap")
  11583. (invoke "tar" "xf"
  11584. (assoc-ref inputs "rapmap")
  11585. "-C" "/tmp/rapmap"
  11586. "--strip-components=1")
  11587. (mkdir-p src)
  11588. (mkdir-p include)
  11589. (for-each (lambda (file)
  11590. (install-file file src))
  11591. (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
  11592. (copy-recursively "/tmp/rapmap/include" include))
  11593. #t))
  11594. (add-after 'unpack 'use-system-libraries
  11595. (lambda* (#:key inputs #:allow-other-keys)
  11596. (substitute* '("src/SailfishIndexer.cpp"
  11597. "src/SailfishUtils.cpp"
  11598. "src/SailfishQuantify.cpp"
  11599. "src/FASTAParser.cpp"
  11600. "include/PCA.hpp"
  11601. "include/SailfishUtils.hpp"
  11602. "include/SailfishIndex.hpp"
  11603. "include/CollapsedEMOptimizer.hpp"
  11604. "src/CollapsedEMOptimizer.cpp")
  11605. (("#include \"jellyfish/config.h\"") ""))
  11606. (substitute* "src/CMakeLists.txt"
  11607. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
  11608. (string-append (assoc-ref inputs "jellyfish")
  11609. "/include/jellyfish-" ,(package-version jellyfish)))
  11610. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
  11611. (string-append (assoc-ref inputs "jellyfish")
  11612. "/lib/libjellyfish-2.0.a"))
  11613. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
  11614. (string-append (assoc-ref inputs "libdivsufsort")
  11615. "/lib/libdivsufsort.so"))
  11616. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
  11617. (string-append (assoc-ref inputs "libdivsufsort")
  11618. "/lib/libdivsufsort64.so")))
  11619. (substitute* "CMakeLists.txt"
  11620. ;; Don't prefer static libs
  11621. (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
  11622. (("find_package\\(Jellyfish.*") "")
  11623. (("ExternalProject_Add\\(libjellyfish") "message(")
  11624. (("ExternalProject_Add\\(libgff") "message(")
  11625. (("ExternalProject_Add\\(libsparsehash") "message(")
  11626. (("ExternalProject_Add\\(libdivsufsort") "message("))
  11627. ;; Ensure that Eigen headers can be found
  11628. (setenv "CPLUS_INCLUDE_PATH"
  11629. (string-append (getenv "CPLUS_INCLUDE_PATH")
  11630. ":"
  11631. (assoc-ref inputs "eigen")
  11632. "/include/eigen3"))
  11633. #t)))))
  11634. (inputs
  11635. `(("boost" ,boost)
  11636. ("eigen" ,eigen)
  11637. ("jemalloc" ,jemalloc)
  11638. ("jellyfish" ,jellyfish)
  11639. ("sparsehash" ,sparsehash)
  11640. ("rapmap" ,(origin
  11641. (method git-fetch)
  11642. (uri (git-reference
  11643. (url "https://github.com/COMBINE-lab/RapMap.git")
  11644. (commit (string-append "sf-v" version))))
  11645. (file-name (string-append "rapmap-sf-v" version "-checkout"))
  11646. (sha256
  11647. (base32
  11648. "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
  11649. (modules '((guix build utils)))
  11650. ;; These files are expected to be excluded.
  11651. (snippet
  11652. '(begin (delete-file-recursively "include/spdlog")
  11653. (for-each delete-file '("include/xxhash.h"
  11654. "src/xxhash.c"))
  11655. #t))))
  11656. ("libdivsufsort" ,libdivsufsort)
  11657. ("libgff" ,libgff)
  11658. ("tbb" ,tbb)
  11659. ("zlib" ,zlib)))
  11660. (native-inputs
  11661. `(("pkg-config" ,pkg-config)))
  11662. (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
  11663. (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
  11664. (description "Sailfish is a tool for genomic transcript quantification
  11665. from RNA-seq data. It requires a set of target transcripts (either from a
  11666. reference or de-novo assembly) to quantify. All you need to run sailfish is a
  11667. fasta file containing your reference transcripts and a (set of) fasta/fastq
  11668. file(s) containing your reads.")
  11669. (license license:gpl3+)))
  11670. (define libstadenio-for-salmon
  11671. (package
  11672. (name "libstadenio")
  11673. (version "1.14.8")
  11674. (source (origin
  11675. (method git-fetch)
  11676. (uri (git-reference
  11677. (url "https://github.com/COMBINE-lab/staden-io_lib.git")
  11678. (commit (string-append "v" version))))
  11679. (file-name (string-append name "-" version "-checkout"))
  11680. (sha256
  11681. (base32
  11682. "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
  11683. (build-system gnu-build-system)
  11684. (arguments '(#:parallel-tests? #f)) ; not supported
  11685. (inputs
  11686. `(("zlib" ,zlib)))
  11687. (native-inputs
  11688. `(("perl" ,perl))) ; for tests
  11689. (home-page "https://github.com/COMBINE-lab/staden-io_lib")
  11690. (synopsis "General purpose trace and experiment file library")
  11691. (description "This package provides a library of file reading and writing
  11692. code to provide a general purpose Trace file (and Experiment File) reading
  11693. interface.
  11694. The following file formats are supported:
  11695. @enumerate
  11696. @item SCF trace files
  11697. @item ABI trace files
  11698. @item ALF trace files
  11699. @item ZTR trace files
  11700. @item SFF trace archives
  11701. @item SRF trace archives
  11702. @item Experiment files
  11703. @item Plain text files
  11704. @item SAM/BAM sequence files
  11705. @item CRAM sequence files
  11706. @end enumerate\n")
  11707. (license license:bsd-3)))
  11708. (define spdlog-for-salmon
  11709. (package
  11710. (name "spdlog")
  11711. (version "0.14.0")
  11712. (source (origin
  11713. (method git-fetch)
  11714. (uri (git-reference
  11715. (url "https://github.com/COMBINE-lab/spdlog.git")
  11716. (commit (string-append "v" version))))
  11717. (file-name (string-append name "-" version "-checkout"))
  11718. (sha256
  11719. (base32
  11720. "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
  11721. (build-system cmake-build-system)
  11722. (home-page "https://github.com/COMBINE-lab/spdlog")
  11723. (synopsis "Very fast C++ logging library")
  11724. (description "Spdlog is a very fast header-only C++ logging library with
  11725. performance as its primary goal.")
  11726. (license license:expat)))
  11727. ;; This is a modified variant of bwa for use with Salmon. It installs a
  11728. ;; library to avoid having to build this as part of Salmon.
  11729. (define bwa-for-salmon
  11730. (package (inherit bwa)
  11731. (name "bwa")
  11732. (version "0.7.12.5")
  11733. (source (origin
  11734. (method git-fetch)
  11735. (uri (git-reference
  11736. (url "https://github.com/COMBINE-lab/bwa.git")
  11737. (commit (string-append "v" version))))
  11738. (file-name (string-append "bwa-for-salmon-" version "-checkout"))
  11739. (sha256
  11740. (base32
  11741. "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
  11742. (build-system gnu-build-system)
  11743. (arguments
  11744. '(#:tests? #f ;no "check" target
  11745. #:phases
  11746. (modify-phases %standard-phases
  11747. (replace 'install
  11748. (lambda* (#:key outputs #:allow-other-keys)
  11749. (let* ((out (assoc-ref outputs "out"))
  11750. (bin (string-append out "/bin"))
  11751. (lib (string-append out "/lib"))
  11752. (doc (string-append out "/share/doc/bwa"))
  11753. (man (string-append out "/share/man/man1"))
  11754. (inc (string-append out "/include/bwa")))
  11755. (install-file "bwa" bin)
  11756. (install-file "README.md" doc)
  11757. (install-file "bwa.1" man)
  11758. (install-file "libbwa.a" lib)
  11759. (mkdir-p lib)
  11760. (mkdir-p inc)
  11761. (for-each (lambda (file)
  11762. (install-file file inc))
  11763. (find-files "." "\\.h$")))
  11764. #t))
  11765. ;; no "configure" script
  11766. (delete 'configure))))))
  11767. (define-public salmon
  11768. (package
  11769. (name "salmon")
  11770. (version "0.9.1")
  11771. (source (origin
  11772. (method git-fetch)
  11773. (uri (git-reference
  11774. (url "https://github.com/COMBINE-lab/salmon.git")
  11775. (commit (string-append "v" version))))
  11776. (file-name (string-append name "-" version "-checkout"))
  11777. (sha256
  11778. (base32
  11779. "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
  11780. (modules '((guix build utils)))
  11781. (snippet
  11782. '(begin
  11783. ;; Delete bundled headers for eigen3.
  11784. (delete-file-recursively "include/eigen3/")
  11785. #t))))
  11786. (build-system cmake-build-system)
  11787. (arguments
  11788. `(#:configure-flags
  11789. (list (string-append "-DBOOST_INCLUDEDIR="
  11790. (assoc-ref %build-inputs "boost")
  11791. "/include/")
  11792. (string-append "-DBOOST_LIBRARYDIR="
  11793. (assoc-ref %build-inputs "boost")
  11794. "/lib/")
  11795. (string-append "-DBoost_LIBRARIES="
  11796. "-lboost_iostreams "
  11797. "-lboost_filesystem "
  11798. "-lboost_system "
  11799. "-lboost_thread "
  11800. "-lboost_timer "
  11801. "-lboost_chrono "
  11802. "-lboost_program_options")
  11803. "-DBoost_FOUND=TRUE"
  11804. "-DTBB_LIBRARIES=tbb tbbmalloc"
  11805. ;; Don't download RapMap---we already have it!
  11806. "-DFETCHED_RAPMAP=1")
  11807. #:phases
  11808. (modify-phases %standard-phases
  11809. ;; Boost cannot be found, even though it's right there.
  11810. (add-after 'unpack 'do-not-look-for-boost
  11811. (lambda* (#:key inputs #:allow-other-keys)
  11812. (substitute* "CMakeLists.txt"
  11813. (("find_package\\(Boost 1\\.53\\.0") "#"))
  11814. #t))
  11815. (add-after 'unpack 'do-not-phone-home
  11816. (lambda _
  11817. (substitute* "src/Salmon.cpp"
  11818. (("getVersionMessage\\(\\)") "\"\""))
  11819. #t))
  11820. (add-after 'unpack 'prepare-rapmap
  11821. (lambda* (#:key inputs #:allow-other-keys)
  11822. (let ((src "external/install/src/rapmap/")
  11823. (include "external/install/include/rapmap/")
  11824. (rapmap (assoc-ref inputs "rapmap")))
  11825. (mkdir-p src)
  11826. (mkdir-p include)
  11827. (for-each (lambda (file)
  11828. (install-file file src))
  11829. (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
  11830. (copy-recursively (string-append rapmap "/include") include)
  11831. (for-each delete-file '("external/install/include/rapmap/xxhash.h"
  11832. "external/install/include/rapmap/FastxParser.hpp"
  11833. "external/install/include/rapmap/concurrentqueue.h"
  11834. "external/install/include/rapmap/FastxParserThreadUtils.hpp"
  11835. "external/install/src/rapmap/FastxParser.cpp"
  11836. "external/install/src/rapmap/xxhash.c")))
  11837. #t))
  11838. (add-after 'unpack 'use-system-libraries
  11839. (lambda* (#:key inputs #:allow-other-keys)
  11840. (substitute* "src/CMakeLists.txt"
  11841. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
  11842. (string-append (assoc-ref inputs "jellyfish")
  11843. "/include/jellyfish-" ,(package-version jellyfish)))
  11844. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
  11845. (string-append (assoc-ref inputs "jellyfish")
  11846. "/lib/libjellyfish-2.0.a"))
  11847. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
  11848. (string-append (assoc-ref inputs "libdivsufsort")
  11849. "/lib/libdivsufsort.so"))
  11850. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
  11851. (string-append (assoc-ref inputs "libstadenio-for-salmon")
  11852. "/lib/libstaden-read.a"))
  11853. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
  11854. (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
  11855. (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
  11856. (string-append (assoc-ref inputs "libdivsufsort")
  11857. "/lib/libdivsufsort64.so")))
  11858. (substitute* "CMakeLists.txt"
  11859. ;; Don't prefer static libs
  11860. (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
  11861. (("set\\(TBB_LIBRARIES") "message(")
  11862. (("find_package\\(Jellyfish.*") "")
  11863. (("ExternalProject_Add\\(libcereal") "message(")
  11864. (("ExternalProject_Add\\(libbwa") "message(")
  11865. (("ExternalProject_Add\\(libjellyfish") "message(")
  11866. (("ExternalProject_Add\\(libgff") "message(")
  11867. (("ExternalProject_Add\\(libtbb") "message(")
  11868. (("ExternalProject_Add\\(libspdlog") "message(")
  11869. (("ExternalProject_Add\\(libdivsufsort") "message(")
  11870. (("ExternalProject_Add\\(libstadenio") "message(")
  11871. (("ExternalProject_Add_Step\\(") "message("))
  11872. ;; Ensure that all headers can be found
  11873. (setenv "CPLUS_INCLUDE_PATH"
  11874. (string-append (getenv "CPLUS_INCLUDE_PATH")
  11875. ":"
  11876. (assoc-ref inputs "bwa")
  11877. "/include/bwa"
  11878. ":"
  11879. (assoc-ref inputs "eigen")
  11880. "/include/eigen3"))
  11881. (setenv "CPATH"
  11882. (string-append (assoc-ref inputs "bwa")
  11883. "/include/bwa"
  11884. ":"
  11885. (assoc-ref inputs "eigen")
  11886. "/include/eigen3"))
  11887. #t))
  11888. ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
  11889. ;; run. It only exists after the install phase.
  11890. (add-after 'unpack 'fix-tests
  11891. (lambda _
  11892. (substitute* "src/CMakeLists.txt"
  11893. (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
  11894. "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
  11895. #t)))))
  11896. (inputs
  11897. `(("boost" ,boost)
  11898. ("bwa" ,bwa-for-salmon)
  11899. ("bzip2" ,bzip2)
  11900. ("cereal" ,cereal)
  11901. ("eigen" ,eigen)
  11902. ("rapmap" ,(origin
  11903. (method git-fetch)
  11904. (uri (git-reference
  11905. (url "https://github.com/COMBINE-lab/RapMap.git")
  11906. (commit (string-append "salmon-v" version))))
  11907. (file-name (string-append "rapmap-salmon-v" version "-checkout"))
  11908. (sha256
  11909. (base32
  11910. "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
  11911. ("jemalloc" ,jemalloc)
  11912. ("jellyfish" ,jellyfish)
  11913. ("libgff" ,libgff)
  11914. ("tbb" ,tbb)
  11915. ("libdivsufsort" ,libdivsufsort)
  11916. ("libstadenio-for-salmon" ,libstadenio-for-salmon)
  11917. ("spdlog-for-salmon" ,spdlog-for-salmon)
  11918. ("xz" ,xz)
  11919. ("zlib" ,zlib)))
  11920. (home-page "https://github.com/COMBINE-lab/salmon")
  11921. (synopsis "Quantification from RNA-seq reads using lightweight alignments")
  11922. (description "Salmon is a program to produce highly-accurate,
  11923. transcript-level quantification estimates from RNA-seq data. Salmon achieves
  11924. its accuracy and speed via a number of different innovations, including the
  11925. use of lightweight alignments (accurate but fast-to-compute proxies for
  11926. traditional read alignments) and massively-parallel stochastic collapsed
  11927. variational inference.")
  11928. (license license:gpl3+)))
  11929. (define-public python-loompy
  11930. (package
  11931. (name "python-loompy")
  11932. (version "2.0.2")
  11933. (source
  11934. (origin
  11935. (method url-fetch)
  11936. (uri (pypi-uri "loompy" version))
  11937. (sha256
  11938. (base32
  11939. "1drgv8j1hxqzzpnfg272x9djb6j8qr798w1pc2x8ikmfgyd9gh51"))))
  11940. (build-system python-build-system)
  11941. ;; There are no tests
  11942. (arguments '(#:tests? #f))
  11943. (propagated-inputs
  11944. `(("python-h5py" ,python-h5py)
  11945. ("python-numpy" ,python-numpy)
  11946. ("python-scipy" ,python-scipy)))
  11947. (home-page "https://github.com/linnarsson-lab/loompy")
  11948. (synopsis "Work with .loom files for single-cell RNA-seq data")
  11949. (description "The loom file format is an efficient format for very large
  11950. omics datasets, consisting of a main matrix, optional additional layers, a
  11951. variable number of row and column annotations. Loom also supports sparse
  11952. graphs. This library makes it easy to work with @file{.loom} files for
  11953. single-cell RNA-seq data.")
  11954. (license license:bsd-3)))
  11955. ;; We cannot use the latest commit because it requires Java 9.
  11956. (define-public java-forester
  11957. (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
  11958. (revision "1"))
  11959. (package
  11960. (name "java-forester")
  11961. (version (string-append "0-" revision "." (string-take commit 7)))
  11962. (source (origin
  11963. (method git-fetch)
  11964. (uri (git-reference
  11965. (url "https://github.com/cmzmasek/forester.git")
  11966. (commit commit)))
  11967. (file-name (string-append name "-" version "-checkout"))
  11968. (sha256
  11969. (base32
  11970. "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
  11971. (modules '((guix build utils)))
  11972. (snippet
  11973. '(begin
  11974. ;; Delete bundled jars and pre-built classes
  11975. (delete-file-recursively "forester/java/resources")
  11976. (delete-file-recursively "forester/java/classes")
  11977. (for-each delete-file (find-files "forester/java/" "\\.jar$"))
  11978. ;; Delete bundled applications
  11979. (delete-file-recursively "forester_applications")
  11980. #t))))
  11981. (build-system ant-build-system)
  11982. (arguments
  11983. `(#:tests? #f ; there are none
  11984. #:jdk ,icedtea-8
  11985. #:modules ((guix build ant-build-system)
  11986. (guix build utils)
  11987. (guix build java-utils)
  11988. (sxml simple)
  11989. (sxml transform))
  11990. #:phases
  11991. (modify-phases %standard-phases
  11992. (add-after 'unpack 'chdir
  11993. (lambda _ (chdir "forester/java") #t))
  11994. (add-after 'chdir 'fix-dependencies
  11995. (lambda _
  11996. (chmod "build.xml" #o664)
  11997. (call-with-output-file "build.xml.new"
  11998. (lambda (port)
  11999. (sxml->xml
  12000. (pre-post-order
  12001. (with-input-from-file "build.xml"
  12002. (lambda _ (xml->sxml #:trim-whitespace? #t)))
  12003. `(;; Remove all unjar tags to avoid repacking classes.
  12004. (unjar . ,(lambda _ '()))
  12005. (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
  12006. (*text* . ,(lambda (_ txt) txt))))
  12007. port)))
  12008. (rename-file "build.xml.new" "build.xml")
  12009. #t))
  12010. ;; FIXME: itext is difficult to package as it depends on a few
  12011. ;; unpackaged libraries.
  12012. (add-after 'chdir 'remove-dependency-on-unpackaged-itext
  12013. (lambda _
  12014. (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
  12015. (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
  12016. (("pdf_written_to = PdfExporter.*")
  12017. "throw new IOException(\"PDF export is not available.\");"))
  12018. #t))
  12019. ;; There is no install target
  12020. (replace 'install (install-jars ".")))))
  12021. (propagated-inputs
  12022. `(("java-commons-codec" ,java-commons-codec)
  12023. ("java-openchart2" ,java-openchart2)))
  12024. (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
  12025. (synopsis "Phylogenomics libraries for Java")
  12026. (description "Forester is a collection of Java libraries for
  12027. phylogenomics and evolutionary biology research. It includes support for
  12028. reading, writing, and exporting phylogenetic trees.")
  12029. (license license:lgpl2.1+))))
  12030. (define-public java-forester-1.005
  12031. (package
  12032. (name "java-forester")
  12033. (version "1.005")
  12034. (source (origin
  12035. (method url-fetch)
  12036. (uri (string-append "http://search.maven.org/remotecontent?"
  12037. "filepath=org/biojava/thirdparty/forester/"
  12038. version "/forester-" version "-sources.jar"))
  12039. (file-name (string-append name "-" version ".jar"))
  12040. (sha256
  12041. (base32
  12042. "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
  12043. (build-system ant-build-system)
  12044. (arguments
  12045. `(#:tests? #f ; there are none
  12046. #:jdk ,icedtea-8
  12047. #:modules ((guix build ant-build-system)
  12048. (guix build utils)
  12049. (guix build java-utils)
  12050. (sxml simple)
  12051. (sxml transform))
  12052. #:phases
  12053. (modify-phases %standard-phases
  12054. (add-after 'unpack 'fix-dependencies
  12055. (lambda* (#:key inputs #:allow-other-keys)
  12056. (call-with-output-file "build.xml"
  12057. (lambda (port)
  12058. (sxml->xml
  12059. (pre-post-order
  12060. (with-input-from-file "src/build.xml"
  12061. (lambda _ (xml->sxml #:trim-whitespace? #t)))
  12062. `(;; Remove all unjar tags to avoid repacking classes.
  12063. (unjar . ,(lambda _ '()))
  12064. (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
  12065. (*text* . ,(lambda (_ txt) txt))))
  12066. port)))
  12067. (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
  12068. "synth_look_and_feel_1.xml")
  12069. (copy-file (assoc-ref inputs "phyloxml.xsd")
  12070. "phyloxml.xsd")
  12071. (substitute* "build.xml"
  12072. (("../resources/synth_laf/synth_look_and_feel_1.xml")
  12073. "synth_look_and_feel_1.xml")
  12074. (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
  12075. "phyloxml.xsd"))
  12076. #t))
  12077. ;; FIXME: itext is difficult to package as it depends on a few
  12078. ;; unpackaged libraries.
  12079. (add-after 'unpack 'remove-dependency-on-unpackaged-itext
  12080. (lambda _
  12081. (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
  12082. (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
  12083. "src/org/forester/archaeopteryx/MainFrameApplication.java")
  12084. (("pdf_written_to = PdfExporter.*")
  12085. "throw new IOException(\"PDF export is not available.\"); /*")
  12086. ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
  12087. (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
  12088. #t))
  12089. (add-after 'unpack 'delete-pre-built-classes
  12090. (lambda _ (delete-file-recursively "src/classes") #t))
  12091. ;; There is no install target
  12092. (replace 'install (install-jars ".")))))
  12093. (propagated-inputs
  12094. `(("java-commons-codec" ,java-commons-codec)
  12095. ("java-openchart2" ,java-openchart2)))
  12096. ;; The source archive does not contain the resources.
  12097. (native-inputs
  12098. `(("phyloxml.xsd"
  12099. ,(origin
  12100. (method url-fetch)
  12101. (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
  12102. "b61cc2dcede0bede317db362472333115756b8c6/"
  12103. "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
  12104. (file-name (string-append name "-phyloxml-" version ".xsd"))
  12105. (sha256
  12106. (base32
  12107. "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
  12108. ("synth_look_and_feel_1.xml"
  12109. ,(origin
  12110. (method url-fetch)
  12111. (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
  12112. "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
  12113. "forester/java/classes/resources/synth_look_and_feel_1.xml"))
  12114. (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
  12115. (sha256
  12116. (base32
  12117. "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
  12118. (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
  12119. (synopsis "Phylogenomics libraries for Java")
  12120. (description "Forester is a collection of Java libraries for
  12121. phylogenomics and evolutionary biology research. It includes support for
  12122. reading, writing, and exporting phylogenetic trees.")
  12123. (license license:lgpl2.1+)))
  12124. (define-public java-biojava-core
  12125. (package
  12126. (name "java-biojava-core")
  12127. (version "4.2.11")
  12128. (source (origin
  12129. (method git-fetch)
  12130. (uri (git-reference
  12131. (url "https://github.com/biojava/biojava")
  12132. (commit (string-append "biojava-" version))))
  12133. (file-name (string-append name "-" version "-checkout"))
  12134. (sha256
  12135. (base32
  12136. "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
  12137. (build-system ant-build-system)
  12138. (arguments
  12139. `(#:jdk ,icedtea-8
  12140. #:jar-name "biojava-core.jar"
  12141. #:source-dir "biojava-core/src/main/java/"
  12142. #:test-dir "biojava-core/src/test"
  12143. ;; These tests seem to require internet access.
  12144. #:test-exclude (list "**/SearchIOTest.java"
  12145. "**/BlastXMLParserTest.java"
  12146. "**/GenbankCookbookTest.java"
  12147. "**/GenbankProxySequenceReaderTest.java")
  12148. #:phases
  12149. (modify-phases %standard-phases
  12150. (add-before 'build 'copy-resources
  12151. (lambda _
  12152. (copy-recursively "biojava-core/src/main/resources"
  12153. "build/classes")
  12154. #t))
  12155. (add-before 'check 'copy-test-resources
  12156. (lambda _
  12157. (copy-recursively "biojava-core/src/test/resources"
  12158. "build/test-classes")
  12159. #t)))))
  12160. (propagated-inputs
  12161. `(("java-log4j-api" ,java-log4j-api)
  12162. ("java-log4j-core" ,java-log4j-core)
  12163. ("java-slf4j-api" ,java-slf4j-api)
  12164. ("java-slf4j-simple" ,java-slf4j-simple)))
  12165. (native-inputs
  12166. `(("java-junit" ,java-junit)
  12167. ("java-hamcrest-core" ,java-hamcrest-core)))
  12168. (home-page "http://biojava.org")
  12169. (synopsis "Core libraries of Java framework for processing biological data")
  12170. (description "BioJava is a project dedicated to providing a Java framework
  12171. for processing biological data. It provides analytical and statistical
  12172. routines, parsers for common file formats, reference implementations of
  12173. popular algorithms, and allows the manipulation of sequences and 3D
  12174. structures. The goal of the biojava project is to facilitate rapid
  12175. application development for bioinformatics.
  12176. This package provides the core libraries.")
  12177. (license license:lgpl2.1+)))
  12178. (define-public java-biojava-phylo
  12179. (package (inherit java-biojava-core)
  12180. (name "java-biojava-phylo")
  12181. (build-system ant-build-system)
  12182. (arguments
  12183. `(#:jdk ,icedtea-8
  12184. #:jar-name "biojava-phylo.jar"
  12185. #:source-dir "biojava-phylo/src/main/java/"
  12186. #:test-dir "biojava-phylo/src/test"
  12187. #:phases
  12188. (modify-phases %standard-phases
  12189. (add-before 'build 'copy-resources
  12190. (lambda _
  12191. (copy-recursively "biojava-phylo/src/main/resources"
  12192. "build/classes")
  12193. #t))
  12194. (add-before 'check 'copy-test-resources
  12195. (lambda _
  12196. (copy-recursively "biojava-phylo/src/test/resources"
  12197. "build/test-classes")
  12198. #t)))))
  12199. (propagated-inputs
  12200. `(("java-log4j-api" ,java-log4j-api)
  12201. ("java-log4j-core" ,java-log4j-core)
  12202. ("java-slf4j-api" ,java-slf4j-api)
  12203. ("java-slf4j-simple" ,java-slf4j-simple)
  12204. ("java-biojava-core" ,java-biojava-core)
  12205. ("java-forester" ,java-forester)))
  12206. (native-inputs
  12207. `(("java-junit" ,java-junit)
  12208. ("java-hamcrest-core" ,java-hamcrest-core)))
  12209. (home-page "http://biojava.org")
  12210. (synopsis "Biojava interface to the forester phylogenomics library")
  12211. (description "The phylo module provides a biojava interface layer to the
  12212. forester phylogenomics library for constructing phylogenetic trees.")))
  12213. (define-public java-biojava-alignment
  12214. (package (inherit java-biojava-core)
  12215. (name "java-biojava-alignment")
  12216. (build-system ant-build-system)
  12217. (arguments
  12218. `(#:jdk ,icedtea-8
  12219. #:jar-name "biojava-alignment.jar"
  12220. #:source-dir "biojava-alignment/src/main/java/"
  12221. #:test-dir "biojava-alignment/src/test"
  12222. #:phases
  12223. (modify-phases %standard-phases
  12224. (add-before 'build 'copy-resources
  12225. (lambda _
  12226. (copy-recursively "biojava-alignment/src/main/resources"
  12227. "build/classes")
  12228. #t))
  12229. (add-before 'check 'copy-test-resources
  12230. (lambda _
  12231. (copy-recursively "biojava-alignment/src/test/resources"
  12232. "build/test-classes")
  12233. #t)))))
  12234. (propagated-inputs
  12235. `(("java-log4j-api" ,java-log4j-api)
  12236. ("java-log4j-core" ,java-log4j-core)
  12237. ("java-slf4j-api" ,java-slf4j-api)
  12238. ("java-slf4j-simple" ,java-slf4j-simple)
  12239. ("java-biojava-core" ,java-biojava-core)
  12240. ("java-biojava-phylo" ,java-biojava-phylo)
  12241. ("java-forester" ,java-forester)))
  12242. (native-inputs
  12243. `(("java-junit" ,java-junit)
  12244. ("java-hamcrest-core" ,java-hamcrest-core)))
  12245. (home-page "http://biojava.org")
  12246. (synopsis "Biojava API for genetic sequence alignment")
  12247. (description "The alignment module of BioJava provides an API that
  12248. contains
  12249. @itemize
  12250. @item implementations of dynamic programming algorithms for sequence
  12251. alignment;
  12252. @item reading and writing of popular alignment file formats;
  12253. @item a single-, or multi- threaded multiple sequence alignment algorithm.
  12254. @end itemize\n")))
  12255. (define-public java-biojava-core-4.0
  12256. (package (inherit java-biojava-core)
  12257. (name "java-biojava-core")
  12258. (version "4.0.0")
  12259. (source (origin
  12260. (method git-fetch)
  12261. (uri (git-reference
  12262. (url "https://github.com/biojava/biojava")
  12263. (commit (string-append "biojava-" version))))
  12264. (file-name (string-append name "-" version "-checkout"))
  12265. (sha256
  12266. (base32
  12267. "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
  12268. (define-public java-biojava-phylo-4.0
  12269. (package (inherit java-biojava-core-4.0)
  12270. (name "java-biojava-phylo")
  12271. (build-system ant-build-system)
  12272. (arguments
  12273. `(#:jdk ,icedtea-8
  12274. #:jar-name "biojava-phylo.jar"
  12275. #:source-dir "biojava-phylo/src/main/java/"
  12276. #:test-dir "biojava-phylo/src/test"
  12277. #:phases
  12278. (modify-phases %standard-phases
  12279. (add-before 'build 'copy-resources
  12280. (lambda _
  12281. (copy-recursively "biojava-phylo/src/main/resources"
  12282. "build/classes")
  12283. #t))
  12284. (add-before 'check 'copy-test-resources
  12285. (lambda _
  12286. (copy-recursively "biojava-phylo/src/test/resources"
  12287. "build/test-classes")
  12288. #t)))))
  12289. (propagated-inputs
  12290. `(("java-log4j-api" ,java-log4j-api)
  12291. ("java-log4j-core" ,java-log4j-core)
  12292. ("java-slf4j-api" ,java-slf4j-api)
  12293. ("java-slf4j-simple" ,java-slf4j-simple)
  12294. ("java-biojava-core" ,java-biojava-core-4.0)
  12295. ("java-forester" ,java-forester-1.005)))
  12296. (native-inputs
  12297. `(("java-junit" ,java-junit)
  12298. ("java-hamcrest-core" ,java-hamcrest-core)))
  12299. (home-page "http://biojava.org")
  12300. (synopsis "Biojava interface to the forester phylogenomics library")
  12301. (description "The phylo module provides a biojava interface layer to the
  12302. forester phylogenomics library for constructing phylogenetic trees.")))
  12303. (define-public java-biojava-alignment-4.0
  12304. (package (inherit java-biojava-core-4.0)
  12305. (name "java-biojava-alignment")
  12306. (build-system ant-build-system)
  12307. (arguments
  12308. `(#:jdk ,icedtea-8
  12309. #:jar-name "biojava-alignment.jar"
  12310. #:source-dir "biojava-alignment/src/main/java/"
  12311. #:test-dir "biojava-alignment/src/test"
  12312. #:phases
  12313. (modify-phases %standard-phases
  12314. (add-before 'build 'copy-resources
  12315. (lambda _
  12316. (copy-recursively "biojava-alignment/src/main/resources"
  12317. "build/classes")
  12318. #t))
  12319. (add-before 'check 'copy-test-resources
  12320. (lambda _
  12321. (copy-recursively "biojava-alignment/src/test/resources"
  12322. "build/test-classes")
  12323. #t)))))
  12324. (propagated-inputs
  12325. `(("java-log4j-api" ,java-log4j-api)
  12326. ("java-log4j-core" ,java-log4j-core)
  12327. ("java-slf4j-api" ,java-slf4j-api)
  12328. ("java-slf4j-simple" ,java-slf4j-simple)
  12329. ("java-biojava-core" ,java-biojava-core-4.0)
  12330. ("java-biojava-phylo" ,java-biojava-phylo-4.0)
  12331. ("java-forester" ,java-forester-1.005)))
  12332. (native-inputs
  12333. `(("java-junit" ,java-junit)
  12334. ("java-hamcrest-core" ,java-hamcrest-core)))
  12335. (home-page "http://biojava.org")
  12336. (synopsis "Biojava API for genetic sequence alignment")
  12337. (description "The alignment module of BioJava provides an API that
  12338. contains
  12339. @itemize
  12340. @item implementations of dynamic programming algorithms for sequence
  12341. alignment;
  12342. @item reading and writing of popular alignment file formats;
  12343. @item a single-, or multi- threaded multiple sequence alignment algorithm.
  12344. @end itemize\n")))
  12345. (define-public dropseq-tools
  12346. (package
  12347. (name "dropseq-tools")
  12348. (version "1.13")
  12349. (source
  12350. (origin
  12351. (method url-fetch)
  12352. (uri "http://mccarrolllab.com/download/1276/")
  12353. (file-name (string-append "dropseq-tools-" version ".zip"))
  12354. (sha256
  12355. (base32
  12356. "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
  12357. ;; Delete bundled libraries
  12358. (modules '((guix build utils)))
  12359. (snippet
  12360. '(begin
  12361. (for-each delete-file (find-files "jar/lib" "\\.jar$"))
  12362. (delete-file-recursively "3rdParty")
  12363. #t))))
  12364. (build-system ant-build-system)
  12365. (arguments
  12366. `(#:tests? #f ; test data are not included
  12367. #:test-target "test"
  12368. #:build-target "all"
  12369. #:source-dir "public/src/"
  12370. #:jdk ,icedtea-8
  12371. #:make-flags
  12372. (list (string-append "-Dpicard.executable.dir="
  12373. (assoc-ref %build-inputs "java-picard")
  12374. "/share/java/"))
  12375. #:modules ((ice-9 match)
  12376. (srfi srfi-1)
  12377. (guix build utils)
  12378. (guix build java-utils)
  12379. (guix build ant-build-system))
  12380. #:phases
  12381. (modify-phases %standard-phases
  12382. ;; FIXME: fails with "java.io.FileNotFoundException:
  12383. ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
  12384. (delete 'generate-jar-indices)
  12385. ;; All dependencies must be linked to "lib", because that's where
  12386. ;; they will be searched for when the Class-Path property of the
  12387. ;; manifest is computed.
  12388. (add-after 'unpack 'record-references
  12389. (lambda* (#:key inputs #:allow-other-keys)
  12390. (mkdir-p "jar/lib")
  12391. (let ((dirs (filter-map (match-lambda
  12392. ((name . dir)
  12393. (if (and (string-prefix? "java-" name)
  12394. (not (string=? name "java-testng")))
  12395. dir #f)))
  12396. inputs)))
  12397. (for-each (lambda (jar)
  12398. (symlink jar (string-append "jar/lib/" (basename jar))))
  12399. (append-map (lambda (dir) (find-files dir "\\.jar$"))
  12400. dirs)))
  12401. #t))
  12402. ;; There is no installation target
  12403. (replace 'install
  12404. (lambda* (#:key inputs outputs #:allow-other-keys)
  12405. (let* ((out (assoc-ref outputs "out"))
  12406. (bin (string-append out "/bin"))
  12407. (share (string-append out "/share/java/"))
  12408. (lib (string-append share "/lib/"))
  12409. (scripts (list "BAMTagHistogram"
  12410. "BAMTagofTagCounts"
  12411. "BaseDistributionAtReadPosition"
  12412. "CollapseBarcodesInPlace"
  12413. "CollapseTagWithContext"
  12414. "ConvertToRefFlat"
  12415. "CreateIntervalsFiles"
  12416. "DetectBeadSynthesisErrors"
  12417. "DigitalExpression"
  12418. "Drop-seq_alignment.sh"
  12419. "FilterBAM"
  12420. "FilterBAMByTag"
  12421. "GatherGeneGCLength"
  12422. "GatherMolecularBarcodeDistributionByGene"
  12423. "GatherReadQualityMetrics"
  12424. "PolyATrimmer"
  12425. "ReduceGTF"
  12426. "SelectCellsByNumTranscripts"
  12427. "SingleCellRnaSeqMetricsCollector"
  12428. "TagBamWithReadSequenceExtended"
  12429. "TagReadWithGeneExon"
  12430. "TagReadWithInterval"
  12431. "TrimStartingSequence"
  12432. "ValidateReference")))
  12433. (for-each mkdir-p (list bin share lib))
  12434. (install-file "dist/dropseq.jar" share)
  12435. (for-each (lambda (script)
  12436. (chmod script #o555)
  12437. (install-file script bin))
  12438. scripts)
  12439. (substitute* (map (lambda (script)
  12440. (string-append bin "/" script))
  12441. scripts)
  12442. (("^java") (which "java"))
  12443. (("jar_deploy_dir=.*")
  12444. (string-append "jar_deploy_dir=" share "\n"))))
  12445. #t))
  12446. ;; FIXME: We do this after stripping jars because we don't want it to
  12447. ;; copy all these jars and strip them. We only want to install
  12448. ;; links. Arguably, this is a problem with the ant-build-system.
  12449. (add-after 'strip-jar-timestamps 'install-links
  12450. (lambda* (#:key outputs #:allow-other-keys)
  12451. (let* ((out (assoc-ref outputs "out"))
  12452. (share (string-append out "/share/java/"))
  12453. (lib (string-append share "/lib/")))
  12454. (for-each (lambda (jar)
  12455. (symlink (readlink jar)
  12456. (string-append lib (basename jar))))
  12457. (find-files "jar/lib" "\\.jar$")))
  12458. #t)))))
  12459. (inputs
  12460. `(("jdk" ,icedtea-8)
  12461. ("java-picard" ,java-picard-2.10.3)
  12462. ("java-log4j-1.2-api" ,java-log4j-1.2-api)
  12463. ("java-commons-math3" ,java-commons-math3)
  12464. ("java-commons-jexl2" ,java-commons-jexl-2)
  12465. ("java-commons-collections4" ,java-commons-collections4)
  12466. ("java-commons-lang2" ,java-commons-lang)
  12467. ("java-commons-io" ,java-commons-io)
  12468. ("java-snappy-1.0.3-rc3" ,java-snappy-1)
  12469. ("java-guava" ,java-guava)
  12470. ("java-la4j" ,java-la4j)
  12471. ("java-biojava-core" ,java-biojava-core-4.0)
  12472. ("java-biojava-alignment" ,java-biojava-alignment-4.0)
  12473. ("java-jdistlib" ,java-jdistlib)
  12474. ("java-simple-xml" ,java-simple-xml)
  12475. ("java-snakeyaml" ,java-snakeyaml)))
  12476. (native-inputs
  12477. `(("unzip" ,unzip)
  12478. ("java-testng" ,java-testng)))
  12479. (home-page "http://mccarrolllab.com/dropseq/")
  12480. (synopsis "Tools for Drop-seq analyses")
  12481. (description "Drop-seq is a technology to enable biologists to
  12482. analyze RNA expression genome-wide in thousands of individual cells at
  12483. once. This package provides tools to perform Drop-seq analyses.")
  12484. (license license:expat)))
  12485. (define-public pigx-rnaseq
  12486. (package
  12487. (name "pigx-rnaseq")
  12488. (version "0.0.5")
  12489. (source (origin
  12490. (method url-fetch)
  12491. (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
  12492. "releases/download/v" version
  12493. "/pigx_rnaseq-" version ".tar.gz"))
  12494. (sha256
  12495. (base32
  12496. "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
  12497. (build-system gnu-build-system)
  12498. (arguments
  12499. `(#:parallel-tests? #f ; not supported
  12500. #:phases
  12501. (modify-phases %standard-phases
  12502. ;; "test.sh" runs STAR, which requires excessive amounts of memory.
  12503. (add-after 'unpack 'disable-resource-intensive-test
  12504. (lambda _
  12505. (substitute* "Makefile.in"
  12506. (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
  12507. (("^ tests/test_multiqc/test.sh") "")
  12508. (("^ test.sh") ""))
  12509. #t)))))
  12510. (inputs
  12511. `(("gzip" ,gzip)
  12512. ("snakemake" ,snakemake)
  12513. ("fastqc" ,fastqc)
  12514. ("multiqc" ,multiqc)
  12515. ("star" ,star)
  12516. ("trim-galore" ,trim-galore)
  12517. ("htseq" ,htseq)
  12518. ("samtools" ,samtools)
  12519. ("bedtools" ,bedtools)
  12520. ("r-minimal" ,r-minimal)
  12521. ("r-rmarkdown" ,r-rmarkdown)
  12522. ("r-ggplot2" ,r-ggplot2)
  12523. ("r-ggrepel" ,r-ggrepel)
  12524. ("r-gprofiler" ,r-gprofiler)
  12525. ("r-deseq2" ,r-deseq2)
  12526. ("r-dt" ,r-dt)
  12527. ("r-knitr" ,r-knitr)
  12528. ("r-pheatmap" ,r-pheatmap)
  12529. ("r-corrplot" ,r-corrplot)
  12530. ("r-reshape2" ,r-reshape2)
  12531. ("r-plotly" ,r-plotly)
  12532. ("r-scales" ,r-scales)
  12533. ("r-summarizedexperiment" ,r-summarizedexperiment)
  12534. ("r-crosstalk" ,r-crosstalk)
  12535. ("r-tximport" ,r-tximport)
  12536. ("r-rtracklayer" ,r-rtracklayer)
  12537. ("r-rjson" ,r-rjson)
  12538. ("salmon" ,salmon)
  12539. ("ghc-pandoc" ,ghc-pandoc)
  12540. ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
  12541. ("python-wrapper" ,python-wrapper)
  12542. ("python-pyyaml" ,python-pyyaml)))
  12543. (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
  12544. (synopsis "Analysis pipeline for RNA sequencing experiments")
  12545. (description "PiGX RNAseq is an analysis pipeline for preprocessing and
  12546. reporting for RNA sequencing experiments. It is easy to use and produces high
  12547. quality reports. The inputs are reads files from the sequencing experiment,
  12548. and a configuration file which describes the experiment. In addition to
  12549. quality control of the experiment, the pipeline produces a differential
  12550. expression report comparing samples in an easily configurable manner.")
  12551. (license license:gpl3+)))
  12552. (define-public pigx-chipseq
  12553. (package
  12554. (name "pigx-chipseq")
  12555. (version "0.0.21")
  12556. (source (origin
  12557. (method url-fetch)
  12558. (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
  12559. "releases/download/v" version
  12560. "/pigx_chipseq-" version ".tar.gz"))
  12561. (sha256
  12562. (base32
  12563. "0psgdzlnx5xwhlhpss5yvmnl7yv19y9742l97m04f7awd8w74gxs"))))
  12564. (build-system gnu-build-system)
  12565. ;; parts of the tests rely on access to the network
  12566. (arguments '(#:tests? #f))
  12567. (inputs
  12568. `(("grep" ,grep)
  12569. ("coreutils" ,coreutils)
  12570. ("r-minimal" ,r-minimal)
  12571. ("r-argparser" ,r-argparser)
  12572. ("r-biocparallel" ,r-biocparallel)
  12573. ("r-biostrings" ,r-biostrings)
  12574. ("r-chipseq" ,r-chipseq)
  12575. ("r-data-table" ,r-data-table)
  12576. ("r-dplyr" ,r-dplyr)
  12577. ("r-genomation" ,r-genomation)
  12578. ("r-genomicalignments" ,r-genomicalignments)
  12579. ("r-genomicranges" ,r-genomicranges)
  12580. ("r-rsamtools" ,r-rsamtools)
  12581. ("r-rtracklayer" ,r-rtracklayer)
  12582. ("r-s4vectors" ,r-s4vectors)
  12583. ("r-stringr" ,r-stringr)
  12584. ("r-tibble" ,r-tibble)
  12585. ("r-tidyr" ,r-tidyr)
  12586. ("r-jsonlite" ,r-jsonlite)
  12587. ("r-heatmaply" ,r-heatmaply)
  12588. ("r-htmlwidgets" ,r-htmlwidgets)
  12589. ("r-ggplot2" ,r-ggplot2)
  12590. ("r-plotly" ,r-plotly)
  12591. ("r-rmarkdown" ,r-rmarkdown)
  12592. ("python-wrapper" ,python-wrapper)
  12593. ("python-pyyaml" ,python-pyyaml)
  12594. ("python-magic" ,python-magic)
  12595. ("python-xlrd" ,python-xlrd)
  12596. ("trim-galore" ,trim-galore)
  12597. ("macs" ,macs)
  12598. ("multiqc" ,multiqc)
  12599. ("perl" ,perl)
  12600. ("ghc-pandoc" ,ghc-pandoc)
  12601. ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
  12602. ("fastqc" ,fastqc)
  12603. ("bowtie" ,bowtie)
  12604. ("idr" ,idr)
  12605. ("snakemake" ,snakemake)
  12606. ("samtools" ,samtools)
  12607. ("bedtools" ,bedtools)
  12608. ("kentutils" ,kentutils)))
  12609. (native-inputs
  12610. `(("python-pytest" ,python-pytest)))
  12611. (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
  12612. (synopsis "Analysis pipeline for ChIP sequencing experiments")
  12613. (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
  12614. calling and reporting for ChIP sequencing experiments. It is easy to use and
  12615. produces high quality reports. The inputs are reads files from the sequencing
  12616. experiment, and a configuration file which describes the experiment. In
  12617. addition to quality control of the experiment, the pipeline enables to set up
  12618. multiple peak calling analysis and allows the generation of a UCSC track hub
  12619. in an easily configurable manner.")
  12620. (license license:gpl3+)))
  12621. (define-public pigx-bsseq
  12622. (package
  12623. (name "pigx-bsseq")
  12624. (version "0.0.10")
  12625. (source (origin
  12626. (method url-fetch)
  12627. (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
  12628. "releases/download/v" version
  12629. "/pigx_bsseq-" version ".tar.gz"))
  12630. (sha256
  12631. (base32
  12632. "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
  12633. (build-system gnu-build-system)
  12634. (arguments
  12635. `(#:phases
  12636. (modify-phases %standard-phases
  12637. (add-before 'check 'set-timezone
  12638. ;; The readr package is picky about timezones.
  12639. (lambda* (#:key inputs #:allow-other-keys)
  12640. (setenv "TZ" "UTC+1")
  12641. (setenv "TZDIR"
  12642. (string-append (assoc-ref inputs "tzdata")
  12643. "/share/zoneinfo"))
  12644. #t)))))
  12645. (native-inputs
  12646. `(("tzdata" ,tzdata)))
  12647. (inputs
  12648. `(("coreutils" ,coreutils)
  12649. ("sed" ,sed)
  12650. ("grep" ,grep)
  12651. ("r-minimal" ,r-minimal)
  12652. ("r-annotationhub" ,r-annotationhub)
  12653. ("r-dt" ,r-dt)
  12654. ("r-genomation" ,r-genomation)
  12655. ("r-methylkit" ,r-methylkit)
  12656. ("r-rtracklayer" ,r-rtracklayer)
  12657. ("r-rmarkdown" ,r-rmarkdown)
  12658. ("r-bookdown" ,r-bookdown)
  12659. ("r-ggplot2" ,r-ggplot2)
  12660. ("r-ggbio" ,r-ggbio)
  12661. ("ghc-pandoc" ,ghc-pandoc)
  12662. ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
  12663. ("python-wrapper" ,python-wrapper)
  12664. ("python-pyyaml" ,python-pyyaml)
  12665. ("snakemake" ,snakemake)
  12666. ("bismark" ,bismark)
  12667. ("fastqc" ,fastqc)
  12668. ("bowtie" ,bowtie)
  12669. ("trim-galore" ,trim-galore)
  12670. ("cutadapt" ,cutadapt)
  12671. ("samtools" ,samtools)))
  12672. (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
  12673. (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
  12674. (description "PiGx BSseq is a data processing pipeline for raw fastq read
  12675. data of bisulfite experiments; it produces reports on aggregate methylation
  12676. and coverage and can be used to produce information on differential
  12677. methylation and segmentation.")
  12678. (license license:gpl3+)))
  12679. (define-public pigx-scrnaseq
  12680. (package
  12681. (name "pigx-scrnaseq")
  12682. (version "0.0.7")
  12683. (source (origin
  12684. (method url-fetch)
  12685. (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
  12686. "releases/download/v" version
  12687. "/pigx_scrnaseq-" version ".tar.gz"))
  12688. (sha256
  12689. (base32
  12690. "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
  12691. (build-system gnu-build-system)
  12692. (arguments
  12693. `(#:configure-flags
  12694. (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
  12695. "/share/java/picard.jar")
  12696. (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
  12697. "/share/java/dropseq.jar"))))
  12698. (inputs
  12699. `(("coreutils" ,coreutils)
  12700. ("perl" ,perl)
  12701. ("dropseq-tools" ,dropseq-tools)
  12702. ("fastqc" ,fastqc)
  12703. ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
  12704. ("java" ,icedtea-8)
  12705. ("python-wrapper" ,python-wrapper)
  12706. ("python-pyyaml" ,python-pyyaml)
  12707. ("python-pandas" ,python-pandas)
  12708. ("python-magic" ,python-magic)
  12709. ("python-numpy" ,python-numpy)
  12710. ("python-loompy" ,python-loompy)
  12711. ("ghc-pandoc" ,ghc-pandoc)
  12712. ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
  12713. ("samtools" ,samtools)
  12714. ("snakemake" ,snakemake)
  12715. ("star" ,star)
  12716. ("r-minimal" ,r-minimal)
  12717. ("r-argparser" ,r-argparser)
  12718. ("r-cowplot" ,r-cowplot)
  12719. ("r-data-table" ,r-data-table)
  12720. ("r-delayedarray" ,r-delayedarray)
  12721. ("r-delayedmatrixstats" ,r-delayedmatrixstats)
  12722. ("r-dplyr" ,r-dplyr)
  12723. ("r-dropbead" ,r-dropbead)
  12724. ("r-dt" ,r-dt)
  12725. ("r-genomicalignments" ,r-genomicalignments)
  12726. ("r-genomicfiles" ,r-genomicfiles)
  12727. ("r-genomicranges" ,r-genomicranges)
  12728. ("r-ggplot2" ,r-ggplot2)
  12729. ("r-hdf5array" ,r-hdf5array)
  12730. ("r-pheatmap" ,r-pheatmap)
  12731. ("r-rmarkdown" ,r-rmarkdown)
  12732. ("r-rsamtools" ,r-rsamtools)
  12733. ("r-rtracklayer" ,r-rtracklayer)
  12734. ("r-rtsne" ,r-rtsne)
  12735. ("r-scater" ,r-scater)
  12736. ("r-scran" ,r-scran)
  12737. ("r-singlecellexperiment" ,r-singlecellexperiment)
  12738. ("r-stringr" ,r-stringr)
  12739. ("r-yaml" ,r-yaml)))
  12740. (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
  12741. (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
  12742. (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
  12743. quality control for single cell RNA sequencing experiments. The inputs are
  12744. read files from the sequencing experiment, and a configuration file which
  12745. describes the experiment. It produces processed files for downstream analysis
  12746. and interactive quality reports. The pipeline is designed to work with UMI
  12747. based methods.")
  12748. (license license:gpl3+)))
  12749. (define-public pigx
  12750. (package
  12751. (name "pigx")
  12752. (version "0.0.3")
  12753. (source (origin
  12754. (method url-fetch)
  12755. (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
  12756. "releases/download/v" version
  12757. "/pigx-" version ".tar.gz"))
  12758. (sha256
  12759. (base32
  12760. "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
  12761. (build-system gnu-build-system)
  12762. (inputs
  12763. `(("python" ,python)
  12764. ("pigx-bsseq" ,pigx-bsseq)
  12765. ("pigx-chipseq" ,pigx-chipseq)
  12766. ("pigx-rnaseq" ,pigx-rnaseq)
  12767. ("pigx-scrnaseq" ,pigx-scrnaseq)))
  12768. (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
  12769. (synopsis "Analysis pipelines for genomics")
  12770. (description "PiGx is a collection of genomics pipelines. It includes the
  12771. following pipelines:
  12772. @itemize
  12773. @item PiGx BSseq for raw fastq read data of bisulfite experiments
  12774. @item PiGx RNAseq for RNAseq samples
  12775. @item PiGx scRNAseq for single cell dropseq analysis
  12776. @item PiGx ChIPseq for reads from ChIPseq experiments
  12777. @end itemize
  12778. All pipelines are easily configured with a simple sample sheet and a
  12779. descriptive settings file. The result is a set of comprehensive, interactive
  12780. HTML reports with interesting findings about your samples.")
  12781. (license license:gpl3+)))
  12782. (define-public mantis
  12783. (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
  12784. (revision "1"))
  12785. (package
  12786. (name "mantis")
  12787. (version (git-version "0" revision commit))
  12788. (source (origin
  12789. (method git-fetch)
  12790. (uri (git-reference
  12791. (url "https://github.com/splatlab/mantis.git")
  12792. (commit commit)))
  12793. (file-name (git-file-name name version))
  12794. (sha256
  12795. (base32
  12796. "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
  12797. (build-system cmake-build-system)
  12798. (arguments '(#:tests? #f)) ; there are none
  12799. (inputs
  12800. `(("sdsl-lite" ,sdsl-lite)
  12801. ("openssl" ,openssl)
  12802. ("zlib" ,zlib)))
  12803. (home-page "https://github.com/splatlab/mantis")
  12804. (synopsis "Large-scale sequence-search index data structure")
  12805. (description "Mantis is a space-efficient data structure that can be
  12806. used to index thousands of raw-read genomics experiments and facilitate
  12807. large-scale sequence searches on those experiments. Mantis uses counting
  12808. quotient filters instead of Bloom filters, enabling rapid index builds and
  12809. queries, small indexes, and exact results, i.e., no false positives or
  12810. negatives. Furthermore, Mantis is also a colored de Bruijn graph
  12811. representation, so it supports fast graph traversal and other topological
  12812. analyses in addition to large-scale sequence-level searches.")
  12813. ;; uses __uint128_t and inline assembly
  12814. (supported-systems '("x86_64-linux"))
  12815. (license license:bsd-3))))
  12816. (define-public r-diversitree
  12817. (package
  12818. (name "r-diversitree")
  12819. (version "0.9-10")
  12820. (source
  12821. (origin
  12822. (method url-fetch)
  12823. (uri (cran-uri "diversitree" version))
  12824. (sha256
  12825. (base32
  12826. "0gh4rcrp0an3jh8915i1fsxlgyfk7njywgbd5ln5r2jhr085kpz7"))))
  12827. (build-system r-build-system)
  12828. (native-inputs
  12829. `(("gfortran" ,gfortran)))
  12830. (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
  12831. (propagated-inputs
  12832. `(("r-ape" ,r-ape)
  12833. ("r-desolve" ,r-desolve)
  12834. ("r-rcpp" ,r-rcpp)
  12835. ("r-suplex" ,r-subplex)))
  12836. (home-page "https://www.zoology.ubc.ca/prog/diversitree")
  12837. (synopsis "Comparative 'phylogenetic' analyses of diversification")
  12838. (description "This package contains a number of comparative \"phylogenetic\"
  12839. methods, mostly focusing on analysing diversification and character evolution.
  12840. Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
  12841. and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
  12842. Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
  12843. include Markov models of discrete and continuous trait evolution and constant
  12844. rate speciation and extinction.")
  12845. (license license:gpl2+)))
  12846. (define-public sjcount
  12847. ;; There is no tag for version 3.2, nor is there a release archive.
  12848. (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
  12849. (revision "1"))
  12850. (package
  12851. (name "sjcount")
  12852. (version (git-version "3.2" revision commit))
  12853. (source (origin
  12854. (method git-fetch)
  12855. (uri (git-reference
  12856. (url "https://github.com/pervouchine/sjcount-full.git")
  12857. (commit commit)))
  12858. (file-name (string-append name "-" version "-checkout"))
  12859. (sha256
  12860. (base32
  12861. "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
  12862. (build-system gnu-build-system)
  12863. (arguments
  12864. `(#:tests? #f ; requires a 1.4G test file
  12865. #:make-flags
  12866. (list (string-append "SAMTOOLS_DIR="
  12867. (assoc-ref %build-inputs "samtools")
  12868. "/lib/"))
  12869. #:phases
  12870. (modify-phases %standard-phases
  12871. (replace 'configure
  12872. (lambda* (#:key inputs #:allow-other-keys)
  12873. (substitute* "makefile"
  12874. (("-I \\$\\{SAMTOOLS_DIR\\}")
  12875. (string-append "-I" (assoc-ref inputs "samtools")
  12876. "/include/samtools"))
  12877. (("-lz ") "-lz -lpthread "))
  12878. #t))
  12879. (replace 'install
  12880. (lambda* (#:key outputs #:allow-other-keys)
  12881. (for-each (lambda (tool)
  12882. (install-file tool
  12883. (string-append (assoc-ref outputs "out")
  12884. "/bin")))
  12885. '("j_count" "b_count" "sjcount"))
  12886. #t)))))
  12887. (inputs
  12888. `(("samtools" ,samtools-0.1)
  12889. ("zlib" ,zlib)))
  12890. (home-page "https://github.com/pervouchine/sjcount-full/")
  12891. (synopsis "Annotation-agnostic splice junction counting pipeline")
  12892. (description "Sjcount is a utility for fast quantification of splice
  12893. junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
  12894. version does count multisplits.")
  12895. (license license:gpl3+))))
  12896. (define-public minimap2
  12897. (package
  12898. (name "minimap2")
  12899. (version "2.10")
  12900. (source
  12901. (origin
  12902. (method url-fetch)
  12903. (uri (string-append "https://github.com/lh3/minimap2/"
  12904. "releases/download/v" version "/"
  12905. "minimap2-" version ".tar.bz2"))
  12906. (sha256
  12907. (base32
  12908. "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
  12909. (build-system gnu-build-system)
  12910. (arguments
  12911. `(#:tests? #f ; there are none
  12912. #:make-flags
  12913. (list "CC=gcc"
  12914. (let ((system ,(or (%current-target-system)
  12915. (%current-system))))
  12916. (cond
  12917. ((string-prefix? "x86_64" system)
  12918. "all")
  12919. ((or (string-prefix? "armhf" system)
  12920. (string-prefix? "aarch64" system))
  12921. "arm_neon=1")
  12922. (_ "sse2only=1"))))
  12923. #:phases
  12924. (modify-phases %standard-phases
  12925. (delete 'configure)
  12926. (replace 'install
  12927. (lambda* (#:key outputs #:allow-other-keys)
  12928. (let* ((out (assoc-ref outputs "out"))
  12929. (bin (string-append out "/bin"))
  12930. (man (string-append out "/share/man/man1")))
  12931. (install-file "minimap2" bin)
  12932. (mkdir-p man)
  12933. (install-file "minimap2.1" man))
  12934. #t)))))
  12935. (inputs
  12936. `(("zlib" ,zlib)))
  12937. (home-page "https://lh3.github.io/minimap2/")
  12938. (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
  12939. (description "Minimap2 is a versatile sequence alignment program that
  12940. aligns DNA or mRNA sequences against a large reference database. Typical use
  12941. cases include:
  12942. @enumerate
  12943. @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
  12944. @item finding overlaps between long reads with error rate up to ~15%;
  12945. @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
  12946. reads against a reference genome;
  12947. @item aligning Illumina single- or paired-end reads;
  12948. @item assembly-to-assembly alignment;
  12949. @item full-genome alignment between two closely related species with
  12950. divergence below ~15%.
  12951. @end enumerate\n")
  12952. (license license:expat)))
  12953. (define-public r-circus
  12954. (package
  12955. (name "r-circus")
  12956. (version "0.1.5")
  12957. (source
  12958. (origin
  12959. (method git-fetch)
  12960. (uri (git-reference
  12961. (url "https://github.com/BIMSBbioinfo/ciRcus.git")
  12962. (commit (string-append "v" version))))
  12963. (file-name (git-file-name name version))
  12964. (sha256
  12965. (base32
  12966. "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
  12967. (build-system r-build-system)
  12968. (propagated-inputs
  12969. `(("r-annotationdbi" ,r-annotationdbi)
  12970. ("r-annotationhub" ,r-annotationhub)
  12971. ("r-biomart" ,r-biomart)
  12972. ("r-data-table" ,r-data-table)
  12973. ("r-dbi" ,r-dbi)
  12974. ("r-genomicfeatures" ,r-genomicfeatures)
  12975. ("r-genomicranges" ,r-genomicranges)
  12976. ("r-ggplot2" ,r-ggplot2)
  12977. ("r-hash" ,r-hash)
  12978. ("r-iranges" ,r-iranges)
  12979. ("r-rcolorbrewer" ,r-rcolorbrewer)
  12980. ("r-rmysql" ,r-rmysql)
  12981. ("r-s4vectors" ,r-s4vectors)
  12982. ("r-stringr" ,r-stringr)
  12983. ("r-summarizedexperiment" ,r-summarizedexperiment)))
  12984. (native-inputs
  12985. `(("r-knitr" ,r-knitr)))
  12986. (home-page "https://github.com/BIMSBbioinfo/ciRcus")
  12987. (synopsis "Annotation, analysis and visualization of circRNA data")
  12988. (description "Circus is an R package for annotation, analysis and
  12989. visualization of circRNA data. Users can annotate their circRNA candidates
  12990. with host genes, gene featrues they are spliced from, and discriminate between
  12991. known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
  12992. can be calculated, and a number of descriptive plots easily generated.")
  12993. (license license:artistic2.0)))
  12994. (define-public r-loomr
  12995. (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
  12996. (revision "1"))
  12997. (package
  12998. (name "r-loomr")
  12999. (version (git-version "0.2.0" revision commit))
  13000. (source
  13001. (origin
  13002. (method git-fetch)
  13003. (uri (git-reference
  13004. (url "https://github.com/mojaveazure/loomR.git")
  13005. (commit commit)))
  13006. (file-name (git-file-name name version))
  13007. (sha256
  13008. (base32
  13009. "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
  13010. (build-system r-build-system)
  13011. (propagated-inputs
  13012. `(("r-r6" ,r-r6)
  13013. ("r-hdf5r" ,r-hdf5r)
  13014. ("r-iterators" ,r-iterators)
  13015. ("r-itertools" ,r-itertools)
  13016. ("r-matrix" ,r-matrix)))
  13017. (home-page "https://github.com/mojaveazure/loomR")
  13018. (synopsis "R interface for loom files")
  13019. (description "This package provides an R interface to access, create,
  13020. and modify loom files. loomR aims to be completely compatible with loompy.")
  13021. (license license:gpl3))))
  13022. (define-public gffread
  13023. ;; We cannot use the tagged release because it is not in sync with gclib.
  13024. ;; See https://github.com/gpertea/gffread/issues/26
  13025. (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
  13026. (revision "1"))
  13027. (package
  13028. (name "gffread")
  13029. (version (git-version "0.9.12" revision commit))
  13030. (source
  13031. (origin
  13032. (method git-fetch)
  13033. (uri (git-reference
  13034. (url "https://github.com/gpertea/gffread.git")
  13035. (commit commit)))
  13036. (file-name (git-file-name name version))
  13037. (sha256
  13038. (base32
  13039. "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
  13040. (build-system gnu-build-system)
  13041. (arguments
  13042. `(#:tests? #f ; no check target
  13043. #:make-flags
  13044. (list "GCLDIR=gclib")
  13045. #:phases
  13046. (modify-phases %standard-phases
  13047. (delete 'configure)
  13048. (add-after 'unpack 'copy-gclib-source
  13049. (lambda* (#:key inputs #:allow-other-keys)
  13050. (mkdir-p "gclib")
  13051. (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
  13052. #t))
  13053. ;; There is no install target
  13054. (replace 'install
  13055. (lambda* (#:key outputs #:allow-other-keys)
  13056. (let* ((out (assoc-ref outputs "out"))
  13057. (bin (string-append out "/bin")))
  13058. (install-file "gffread" bin))
  13059. #t)))))
  13060. (native-inputs
  13061. `(("gclib-source"
  13062. ,(let ((version "0.10.3")
  13063. (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
  13064. (revision "1"))
  13065. (origin
  13066. (method git-fetch)
  13067. (uri (git-reference
  13068. (url "https://github.com/gpertea/gclib.git")
  13069. (commit commit)))
  13070. (file-name (git-file-name "gclib" version))
  13071. (sha256
  13072. (base32
  13073. "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
  13074. (home-page "https://github.com/gpertea/gffread/")
  13075. (synopsis "Parse and convert GFF/GTF files")
  13076. (description
  13077. "This package provides a GFF/GTF file parsing utility providing format
  13078. conversions, region filtering, FASTA sequence extraction and more.")
  13079. ;; gffread is under Expat, but gclib is under Artistic 2.0
  13080. (license (list license:expat
  13081. license:artistic2.0)))))
  13082. (define-public find-circ
  13083. ;; The last release was in 2015. The license was clarified in 2017, so we
  13084. ;; take the latest commit.
  13085. (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
  13086. (revision "1"))
  13087. (package
  13088. (name "find-circ")
  13089. (version (git-version "1.2" revision commit))
  13090. (source
  13091. (origin
  13092. (method git-fetch)
  13093. (uri (git-reference
  13094. (url "https://github.com/marvin-jens/find_circ.git")
  13095. (commit commit)))
  13096. (file-name (git-file-name name version))
  13097. (sha256
  13098. (base32
  13099. "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
  13100. (build-system gnu-build-system)
  13101. (arguments
  13102. `(#:tests? #f ; there are none
  13103. #:phases
  13104. ;; There is no actual build system.
  13105. (modify-phases %standard-phases
  13106. (delete 'configure)
  13107. (delete 'build)
  13108. (replace 'install
  13109. (lambda* (#:key outputs #:allow-other-keys)
  13110. (let* ((out (assoc-ref outputs "out"))
  13111. (bin (string-append out "/bin"))
  13112. (path (getenv "PYTHONPATH")))
  13113. (for-each (lambda (script)
  13114. (install-file script bin)
  13115. (wrap-program (string-append bin "/" script)
  13116. `("PYTHONPATH" ":" prefix (,path))))
  13117. '("cmp_bed.py"
  13118. "find_circ.py"
  13119. "maxlength.py"
  13120. "merge_bed.py"
  13121. "unmapped2anchors.py")))
  13122. #t)))))
  13123. (inputs
  13124. `(("python2" ,python-2)
  13125. ("python2-pysam" ,python2-pysam)
  13126. ("python2-numpy" ,python2-numpy)))
  13127. (home-page "https://github.com/marvin-jens/find_circ")
  13128. (synopsis "circRNA detection from RNA-seq reads")
  13129. (description "This package provides tools to detect head-to-tail
  13130. spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
  13131. in RNA-seq data.")
  13132. (license license:gpl3))))
  13133. (define-public python-scanpy
  13134. (package
  13135. (name "python-scanpy")
  13136. (version "1.2.2")
  13137. (source
  13138. (origin
  13139. (method url-fetch)
  13140. (uri (pypi-uri "scanpy" version))
  13141. (sha256
  13142. (base32
  13143. "1ak7bxms5a0yvf65prppq2g38clkv7c7jnjbnfpkh3xxv7q512jz"))))
  13144. (build-system python-build-system)
  13145. (propagated-inputs
  13146. `(("python-anndata" ,python-anndata)
  13147. ("python-igraph" ,python-igraph)
  13148. ("python-numba" ,python-numba)
  13149. ("python-joblib" ,python-joblib)
  13150. ("python-natsort" ,python-natsort)
  13151. ("python-networkx" ,python-networkx)
  13152. ("python-statsmodels" ,python-statsmodels)
  13153. ("python-scikit-learn" ,python-scikit-learn)
  13154. ("python-matplotlib" ,python-matplotlib)
  13155. ("python-pandas" ,python-pandas)
  13156. ("python-scipy" ,python-scipy)
  13157. ("python-seaborn" ,python-seaborn)
  13158. ("python-h5py" ,python-h5py)
  13159. ("python-tables" ,python-tables)))
  13160. (home-page "http://github.com/theislab/scanpy")
  13161. (synopsis "Single-Cell Analysis in Python.")
  13162. (description "Scanpy is a scalable toolkit for analyzing single-cell gene
  13163. expression data. It includes preprocessing, visualization, clustering,
  13164. pseudotime and trajectory inference and differential expression testing. The
  13165. Python-based implementation efficiently deals with datasets of more than one
  13166. million cells.")
  13167. (license license:bsd-3)))
  13168. (define-public gffcompare
  13169. (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
  13170. (revision "1"))
  13171. (package
  13172. (name "gffcompare")
  13173. (version (git-version "0.10.15" revision commit))
  13174. (source
  13175. (origin
  13176. (method git-fetch)
  13177. (uri (git-reference
  13178. (url "https://github.com/gpertea/gffcompare/")
  13179. (commit commit)))
  13180. (file-name (git-file-name name version))
  13181. (sha256
  13182. (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
  13183. (build-system gnu-build-system)
  13184. (arguments
  13185. `(#:tests? #f ; no check target
  13186. #:phases
  13187. (modify-phases %standard-phases
  13188. (delete 'configure)
  13189. (add-before 'build 'copy-gclib-source
  13190. (lambda* (#:key inputs #:allow-other-keys)
  13191. (mkdir "../gclib")
  13192. (copy-recursively
  13193. (assoc-ref inputs "gclib-source") "../gclib")
  13194. #t))
  13195. (replace 'install
  13196. (lambda* (#:key outputs #:allow-other-keys)
  13197. (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
  13198. (install-file "gffcompare" bin)
  13199. #t))))))
  13200. (native-inputs
  13201. `(("gclib-source" ; see 'README.md' of gffcompare
  13202. ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
  13203. (revision "1")
  13204. (name "gclib")
  13205. (version (git-version "0.10.3" revision commit)))
  13206. (origin
  13207. (method git-fetch)
  13208. (uri (git-reference
  13209. (url "https://github.com/gpertea/gclib/")
  13210. (commit commit)))
  13211. (file-name (git-file-name name version))
  13212. (sha256
  13213. (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
  13214. (home-page "https://github.com/gpertea/gffcompare/")
  13215. (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
  13216. (description
  13217. "@code{gffcompare} is a tool that can:
  13218. @enumerate
  13219. @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
  13220. (Cufflinks, Stringtie);
  13221. @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
  13222. resulted from assembly of different samples);
  13223. @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
  13224. reference transcripts provided in a annotation file (also in GTF/GFF3 format).
  13225. @end enumerate")
  13226. (license
  13227. (list
  13228. license:expat ;license for gffcompare
  13229. license:artistic2.0))))) ;license for gclib
  13230. (define-public python-intervaltree
  13231. (package
  13232. (name "python-intervaltree")
  13233. (version "2.1.0")
  13234. (source
  13235. (origin
  13236. (method url-fetch)
  13237. (uri (pypi-uri "intervaltree" version))
  13238. (sha256
  13239. (base32
  13240. "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
  13241. (build-system python-build-system)
  13242. ;; FIXME: error when collecting tests
  13243. (arguments '(#:tests? #f))
  13244. (propagated-inputs
  13245. `(("python-sortedcontainers" ,python-sortedcontainers)))
  13246. (native-inputs
  13247. `(("python-pytest" ,python-pytest)))
  13248. (home-page "https://github.com/chaimleib/intervaltree")
  13249. (synopsis "Editable interval tree data structure")
  13250. (description
  13251. "This package provides a mutable, self-balancing interval tree
  13252. implementation for Python. Queries may be by point, by range overlap, or by
  13253. range envelopment. This library was designed to allow tagging text and time
  13254. intervals, where the intervals include the lower bound but not the upper
  13255. bound.")
  13256. (license license:asl2.0)))
  13257. (define-public python-pypairix
  13258. (package
  13259. (name "python-pypairix")
  13260. (version "0.3.6")
  13261. (source
  13262. (origin
  13263. (method url-fetch)
  13264. (uri (pypi-uri "pypairix" version))
  13265. (sha256
  13266. (base32
  13267. "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
  13268. (build-system python-build-system)
  13269. ;; FIXME: the tests fail because test.support cannot be loaded:
  13270. ;; ImportError: cannot import name 'support'
  13271. (arguments '(#:tests? #f))
  13272. (inputs
  13273. `(("zlib" ,zlib)))
  13274. (home-page "https://github.com/4dn-dcic/pairix")
  13275. (synopsis "Support for querying pairix-indexed bgzipped text files")
  13276. (description
  13277. "Pypairix is a Python module for fast querying on a pairix-indexed
  13278. bgzipped text file that contains a pair of genomic coordinates per line.")
  13279. (license license:expat)))
  13280. (define-public python-pyfaidx
  13281. (package
  13282. (name "python-pyfaidx")
  13283. (version "0.5.4.2")
  13284. (source
  13285. (origin
  13286. (method url-fetch)
  13287. (uri (pypi-uri "pyfaidx" version))
  13288. (sha256
  13289. (base32
  13290. "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
  13291. (build-system python-build-system)
  13292. (propagated-inputs
  13293. `(("python-setuptools" ,python-setuptools)
  13294. ("python-six" ,python-six)))
  13295. (home-page "http://mattshirley.com")
  13296. (synopsis "Random access to fasta subsequences")
  13297. (description
  13298. "This package provides procedures for efficient pythonic random access to
  13299. fasta subsequences.")
  13300. (license license:bsd-3)))
  13301. (define-public python-cooler
  13302. (package
  13303. (name "python-cooler")
  13304. (version "0.7.11")
  13305. (source
  13306. (origin
  13307. (method url-fetch)
  13308. (uri (pypi-uri "cooler" version))
  13309. (sha256
  13310. (base32
  13311. "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
  13312. (build-system python-build-system)
  13313. (propagated-inputs
  13314. `(("python-biopython" ,python-biopython)
  13315. ("python-click" ,python-click)
  13316. ("python-cytoolz" ,python-cytoolz)
  13317. ("python-dask" ,python-dask)
  13318. ("python-h5py" ,python-h5py)
  13319. ("python-multiprocess" ,python-multiprocess)
  13320. ("python-pandas" ,python-pandas)
  13321. ("python-pyfaidx" ,python-pyfaidx)
  13322. ("python-pypairix" ,python-pypairix)
  13323. ("python-pysam" ,python-pysam)
  13324. ("python-scipy" ,python-scipy)))
  13325. (native-inputs
  13326. `(("python-mock" ,python-mock)
  13327. ("python-nose" ,python-nose)
  13328. ("python-numpydoc" ,python-numpydoc)
  13329. ("python-sphinx" ,python-sphinx)))
  13330. (home-page "https://github.com/mirnylab/cooler")
  13331. (synopsis "Sparse binary format for genomic interaction matrices")
  13332. (description
  13333. "Cooler is a support library for a sparse, compressed, binary persistent
  13334. storage format, called @code{cool}, used to store genomic interaction data,
  13335. such as Hi-C contact matrices.")
  13336. (license license:bsd-3)))
  13337. (define-public python-hicexplorer
  13338. (package
  13339. (name "python-hicexplorer")
  13340. (version "2.1.4")
  13341. (source
  13342. (origin
  13343. ;; The latest version is not available on Pypi.
  13344. (method git-fetch)
  13345. (uri (git-reference
  13346. (url "https://github.com/deeptools/HiCExplorer.git")
  13347. (commit version)))
  13348. (file-name (git-file-name name version))
  13349. (sha256
  13350. (base32
  13351. "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
  13352. (build-system python-build-system)
  13353. (arguments
  13354. `(#:phases
  13355. (modify-phases %standard-phases
  13356. (add-after 'unpack 'loosen-up-requirements
  13357. (lambda _
  13358. (substitute* "setup.py"
  13359. (("==") ">="))
  13360. #t)))))
  13361. (propagated-inputs
  13362. `(("python-biopython" ,python-biopython)
  13363. ("python-configparser" ,python-configparser)
  13364. ("python-cooler" ,python-cooler)
  13365. ("python-future" ,python-future)
  13366. ("python-intervaltree" ,python-intervaltree)
  13367. ("python-jinja2" ,python-jinja2)
  13368. ("python-matplotlib" ,python-matplotlib)
  13369. ("python-numpy" ,python-numpy)
  13370. ("python-pandas" ,python-pandas)
  13371. ("python-pybigwig" ,python-pybigwig)
  13372. ("python-pysam" ,python-pysam)
  13373. ("python-scipy" ,python-scipy)
  13374. ("python-six" ,python-six)
  13375. ("python-tables" ,python-tables)
  13376. ("python-unidecode" ,python-unidecode)))
  13377. (home-page "http://hicexplorer.readthedocs.io")
  13378. (synopsis "Process, analyze and visualize Hi-C data")
  13379. (description
  13380. "HiCExplorer is a powerful and easy to use set of tools to process,
  13381. normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
  13382. contact matrices, correction of contacts, TAD detection, A/B compartments,
  13383. merging, reordering or chromosomes, conversion from different formats
  13384. including cooler and detection of long-range contacts. Moreover, it allows
  13385. the visualization of multiple contact matrices along with other types of data
  13386. like genes, compartments, ChIP-seq coverage tracks (and in general any type of
  13387. genomic scores), long range contacts and the visualization of viewpoints.")
  13388. (license license:gpl3)))
  13389. (define-public python-pygenometracks
  13390. (package
  13391. (name "python-pygenometracks")
  13392. (version "2.0")
  13393. (source
  13394. (origin
  13395. (method url-fetch)
  13396. (uri (pypi-uri "pyGenomeTracks" version))
  13397. (sha256
  13398. (base32
  13399. "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
  13400. (build-system python-build-system)
  13401. (propagated-inputs
  13402. `(("python-configparser" ,python-configparser)
  13403. ("python-future" ,python-future)
  13404. ("python-hicexplorer" ,python-hicexplorer)
  13405. ("python-intervaltree" ,python-intervaltree)
  13406. ("python-matplotlib" ,python-matplotlib)
  13407. ("python-numpy" ,python-numpy)
  13408. ("python-pybigwig" ,python-pybigwig)))
  13409. (native-inputs
  13410. `(("python-pytest" ,python-pytest)))
  13411. (home-page "https://pygenometracks.readthedocs.io")
  13412. (synopsis "Program and library to plot beautiful genome browser tracks")
  13413. (description
  13414. "This package aims to produce high-quality genome browser tracks that
  13415. are highly customizable. Currently, it is possible to plot: bigwig, bed (many
  13416. options), bedgraph, links (represented as arcs), and Hi-C matrices.
  13417. pyGenomeTracks can make plots with or without Hi-C data.")
  13418. (license license:gpl3+)))
  13419. (define-public python-hic2cool
  13420. (package
  13421. (name "python-hic2cool")
  13422. (version "0.4.2")
  13423. (source
  13424. (origin
  13425. (method url-fetch)
  13426. (uri (pypi-uri "hic2cool" version))
  13427. (sha256
  13428. (base32
  13429. "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
  13430. (build-system python-build-system)
  13431. (arguments '(#:tests? #f)) ; no tests included
  13432. (propagated-inputs
  13433. `(("python-cooler" ,python-cooler)))
  13434. (home-page "https://github.com/4dn-dcic/hic2cool")
  13435. (synopsis "Converter for .hic and .cool files")
  13436. (description
  13437. "This package provides a converter between @code{.hic} files (from
  13438. juicer) and single-resolution or multi-resolution @code{.cool} files (for
  13439. cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
  13440. matrices.")
  13441. (license license:expat)))
  13442. (define-public r-pore
  13443. (package
  13444. (name "r-pore")
  13445. (version "0.24")
  13446. (source
  13447. (origin
  13448. (method url-fetch)
  13449. (uri
  13450. (string-append "mirror://sourceforge/rpore/" version
  13451. "/poRe_" version ".tar.gz"))
  13452. (sha256
  13453. (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
  13454. (properties `((upstream-name . "poRe")))
  13455. (build-system r-build-system)
  13456. (propagated-inputs
  13457. `(("r-bit64" ,r-bit64)
  13458. ("r-data-table" ,r-data-table)
  13459. ("r-rhdf5" ,r-rhdf5)
  13460. ("r-shiny" ,r-shiny)
  13461. ("r-svdialogs" ,r-svdialogs)))
  13462. (home-page "https://sourceforge.net/projects/rpore/")
  13463. (synopsis "Visualize Nanopore sequencing data")
  13464. (description
  13465. "This package provides graphical user interfaces to organize and visualize Nanopore
  13466. sequencing data.")
  13467. ;; This is free software but the license variant is unclear:
  13468. ;; <https://github.com/mw55309/poRe_docs/issues/10>.
  13469. (license license:bsd-3)))
  13470. (define-public r-xbioc
  13471. (let ((revision "1")
  13472. (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
  13473. (package
  13474. (name "r-xbioc")
  13475. (version (git-version "0.1.15" revision commit))
  13476. (source (origin
  13477. (method git-fetch)
  13478. (uri (git-reference
  13479. (url "https://github.com/renozao/xbioc.git")
  13480. (commit commit)))
  13481. (file-name (git-file-name name version))
  13482. (sha256
  13483. (base32
  13484. "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
  13485. (build-system r-build-system)
  13486. (propagated-inputs
  13487. `(("r-annotationdbi" ,r-annotationdbi)
  13488. ("r-assertthat" ,r-assertthat)
  13489. ("r-biobase" ,r-biobase)
  13490. ("r-biocinstaller" ,r-biocinstaller)
  13491. ("r-digest" ,r-digest)
  13492. ("r-pkgmaker" ,r-pkgmaker)
  13493. ("r-plyr" ,r-plyr)
  13494. ("r-reshape2" ,r-reshape2)
  13495. ("r-stringr" ,r-stringr)))
  13496. (home-page "https://github.com/renozao/xbioc/")
  13497. (synopsis "Extra base functions for Bioconductor")
  13498. (description "This package provides extra utility functions to perform
  13499. common tasks in the analysis of omics data, leveraging and enhancing features
  13500. provided by Bioconductor packages.")
  13501. (license license:gpl3+))))
  13502. (define-public r-cssam
  13503. (let ((revision "1")
  13504. (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
  13505. (package
  13506. (name "r-cssam")
  13507. (version (git-version "1.4" revision commit))
  13508. (source (origin
  13509. (method git-fetch)
  13510. (uri (git-reference
  13511. (url "https://github.com/shenorrLab/csSAM.git")
  13512. (commit commit)))
  13513. (file-name (git-file-name name version))
  13514. (sha256
  13515. (base32
  13516. "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
  13517. (build-system r-build-system)
  13518. (propagated-inputs
  13519. `(("r-formula" ,r-formula)
  13520. ("r-ggplot2" ,r-ggplot2)
  13521. ("r-pkgmaker" ,r-pkgmaker)
  13522. ("r-plyr" ,r-plyr)
  13523. ("r-rngtools" ,r-rngtools)
  13524. ("r-scales" ,r-scales)))
  13525. (home-page "https://github.com/shenorrLab/csSAM/")
  13526. (synopsis "Cell type-specific statistical analysis of microarray")
  13527. (description "This package implements the method csSAM that computes
  13528. cell-specific differential expression from measured cell proportions using
  13529. SAM.")
  13530. ;; Any version
  13531. (license license:lgpl2.1+))))
  13532. (define-public r-bseqsc
  13533. (let ((revision "1")
  13534. (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
  13535. (package
  13536. (name "r-bseqsc")
  13537. (version (git-version "1.0" revision commit))
  13538. (source (origin
  13539. (method git-fetch)
  13540. (uri (git-reference
  13541. (url "https://github.com/shenorrLab/bseqsc.git")
  13542. (commit commit)))
  13543. (file-name (git-file-name name version))
  13544. (sha256
  13545. (base32
  13546. "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
  13547. (build-system r-build-system)
  13548. (propagated-inputs
  13549. `(("r-abind" ,r-abind)
  13550. ("r-annotationdbi" ,r-annotationdbi)
  13551. ("r-biobase" ,r-biobase)
  13552. ("r-cssam" ,r-cssam)
  13553. ("r-dplyr" ,r-dplyr)
  13554. ("r-e1071" ,r-e1071)
  13555. ("r-edger" ,r-edger)
  13556. ("r-ggplot2" ,r-ggplot2)
  13557. ("r-nmf" ,r-nmf)
  13558. ("r-openxlsx" ,r-openxlsx)
  13559. ("r-pkgmaker" ,r-pkgmaker)
  13560. ("r-plyr" ,r-plyr)
  13561. ("r-preprocesscore" ,r-preprocesscore)
  13562. ("r-rngtools" ,r-rngtools)
  13563. ("r-scales" ,r-scales)
  13564. ("r-stringr" ,r-stringr)
  13565. ("r-xbioc" ,r-xbioc)))
  13566. (home-page "https://github.com/shenorrLab/bseqsc")
  13567. (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
  13568. (description "BSeq-sc is a bioinformatics analysis pipeline that
  13569. leverages single-cell sequencing data to estimate cell type proportion and
  13570. cell type-specific gene expression differences from RNA-seq data from bulk
  13571. tissue samples. This is a companion package to the publication \"A
  13572. single-cell transcriptomic map of the human and mouse pancreas reveals inter-
  13573. and intra-cell population structure.\" Baron et al. Cell Systems (2016)
  13574. @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
  13575. (license license:gpl2+))))
  13576. (define-public porechop
  13577. ;; The recommended way to install is to clone the git repository
  13578. ;; https://github.com/rrwick/Porechop#installation
  13579. (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
  13580. (revision "1"))
  13581. (package
  13582. (name "porechop")
  13583. (version (git-version "0.2.3" revision commit))
  13584. (source
  13585. (origin
  13586. (method git-fetch)
  13587. (uri (git-reference
  13588. (url "https://github.com/rrwick/Porechop.git")
  13589. (commit commit)))
  13590. (file-name (git-file-name name version))
  13591. (sha256
  13592. (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
  13593. (build-system python-build-system)
  13594. (home-page "https://github.com/rrwick/porechop")
  13595. (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
  13596. (description
  13597. "The porechop package is a tool for finding and removing adapters from Oxford
  13598. Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
  13599. has an adapter in its middle, it is treated as chimeric and chopped into
  13600. separate reads. Porechop performs thorough alignments to effectively find
  13601. adapters, even at low sequence identity. Porechop also supports demultiplexing
  13602. of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
  13603. Barcoding Kit or Rapid Barcoding Kit.")
  13604. (license license:gpl3+))))
  13605. (define-public poretools
  13606. ;; The latest release was in 2016 and the latest commit is from 2017
  13607. ;; the recommended way to install is to clone the git repository
  13608. ;; https://poretools.readthedocs.io/en/latest/content/installation.html
  13609. (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
  13610. (revision "1"))
  13611. (package
  13612. (name "poretools")
  13613. (version (git-version "0.6.0" revision commit))
  13614. (source
  13615. (origin
  13616. (method git-fetch)
  13617. (uri (git-reference
  13618. (url "https://github.com/arq5x/poretools.git")
  13619. (commit commit)))
  13620. (file-name (git-file-name name version))
  13621. (sha256
  13622. (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
  13623. (build-system python-build-system)
  13624. ;; requires python >=2.7, <3.0, and the same for python dependencies
  13625. (arguments `(#:python ,python-2))
  13626. (inputs
  13627. `(("hdf5" ,hdf5)))
  13628. (propagated-inputs
  13629. `(("python-dateutil" ,python2-dateutil)
  13630. ("python-h5py" ,python2-h5py)
  13631. ("python-matplotlib" ,python2-matplotlib)
  13632. ("python-pandas" ,python2-pandas)
  13633. ("python-seaborn" ,python2-seaborn)))
  13634. (home-page "https://poretools.readthedocs.io")
  13635. (synopsis "Toolkit for working with nanopore sequencing data")
  13636. (description
  13637. "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
  13638. This @code{poretools} package is a flexible toolkit for exploring datasets
  13639. generated by nanopore sequencing devices for the purposes of quality control and
  13640. downstream analysis. Poretools operates directly on the native FAST5, a variant
  13641. of the Hierarchical Data Format (HDF5) standard.")
  13642. (license license:expat))))
  13643. (define-public r-absfiltergsea
  13644. (package
  13645. (name "r-absfiltergsea")
  13646. (version "1.5.1")
  13647. (source
  13648. (origin
  13649. (method url-fetch)
  13650. (uri (cran-uri "AbsFilterGSEA" version))
  13651. (sha256
  13652. (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
  13653. (properties `((upstream-name . "AbsFilterGSEA")))
  13654. (build-system r-build-system)
  13655. (propagated-inputs
  13656. `(("r-biobase" ,r-biobase)
  13657. ("r-deseq" ,r-deseq)
  13658. ("r-limma" ,r-limma)
  13659. ("r-rcpp" ,r-rcpp)
  13660. ("r-rcpparmadillo" ,r-rcpparmadillo)))
  13661. (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
  13662. (synopsis "Improved false positive control of gene-permuting with absolute filtering")
  13663. (description
  13664. "This package provides a function that performs gene-permuting of a gene-set
  13665. enrichment analysis (GSEA) calculation with or without the absolute filtering.
  13666. Without filtering, users can perform (original) two-tailed or one-tailed
  13667. absolute GSEA.")
  13668. (license license:gpl2)))
  13669. (define-public jamm
  13670. (package
  13671. (name "jamm")
  13672. (version "1.0.7.5")
  13673. (source
  13674. (origin
  13675. (method git-fetch)
  13676. (uri (git-reference
  13677. (url "https://github.com/mahmoudibrahim/JAMM.git")
  13678. (commit (string-append "JAMMv" version))))
  13679. (file-name (git-file-name name version))
  13680. (sha256
  13681. (base32
  13682. "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
  13683. (build-system gnu-build-system)
  13684. (arguments
  13685. `(#:tests? #f ; there are none
  13686. #:phases
  13687. (modify-phases %standard-phases
  13688. (delete 'configure)
  13689. (delete 'build)
  13690. (replace 'install
  13691. (lambda* (#:key inputs outputs #:allow-other-keys)
  13692. (let* ((out (assoc-ref outputs "out"))
  13693. (libexec (string-append out "/libexec/jamm"))
  13694. (bin (string-append out "/bin")))
  13695. (substitute* '("JAMM.sh"
  13696. "SignalGenerator.sh")
  13697. (("^sPath=.*")
  13698. (string-append "sPath=\"" libexec "\"\n")))
  13699. (for-each (lambda (file)
  13700. (install-file file libexec))
  13701. (list "bincalculator.r"
  13702. "peakfinder.r"
  13703. "peakhelper.r"
  13704. "signalmaker.r"
  13705. "xcorr.r"
  13706. "xcorrhelper.r"
  13707. ;; Perl scripts
  13708. "peakfilter.pl"
  13709. "readshifter.pl"))
  13710. (for-each
  13711. (lambda (script)
  13712. (chmod script #o555)
  13713. (install-file script bin)
  13714. (wrap-program (string-append bin "/" script)
  13715. `("PATH" ":" prefix
  13716. (,(string-append (assoc-ref inputs "coreutils") "/bin")
  13717. ,(string-append (assoc-ref inputs "gawk") "/bin")
  13718. ,(string-append (assoc-ref inputs "perl") "/bin")
  13719. ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
  13720. `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
  13721. `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
  13722. (list "JAMM.sh" "SignalGenerator.sh")))
  13723. #t)))))
  13724. (inputs
  13725. `(("bash" ,bash)
  13726. ("coreutils" ,coreutils)
  13727. ("gawk" ,gawk)
  13728. ("perl" ,perl)
  13729. ("r-minimal" ,r-minimal)
  13730. ;;("r-parallel" ,r-parallel)
  13731. ("r-signal" ,r-signal)
  13732. ("r-mclust" ,r-mclust)))
  13733. (home-page "https://github.com/mahmoudibrahim/JAMM")
  13734. (synopsis "Peak finder for NGS datasets")
  13735. (description
  13736. "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
  13737. ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
  13738. boundaries accurately. JAMM is applicable to both broad and narrow
  13739. datasets.")
  13740. (license license:gpl3+)))
  13741. (define-public ngless
  13742. (package
  13743. (name "ngless")
  13744. (version "0.9.1")
  13745. (source
  13746. (origin
  13747. (method git-fetch)
  13748. (uri (git-reference
  13749. (url "https://gitlab.com/ngless/ngless.git")
  13750. (commit (string-append "v" version))))
  13751. (file-name (git-file-name name version))
  13752. (sha256
  13753. (base32
  13754. "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
  13755. (build-system haskell-build-system)
  13756. (arguments
  13757. `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
  13758. ; error: parse error on input import
  13759. ; import Options.Applicative
  13760. #:phases
  13761. (modify-phases %standard-phases
  13762. (add-after 'unpack 'create-cabal-file
  13763. (lambda _ (invoke "hpack") #t))
  13764. ;; These tools are expected to be installed alongside ngless.
  13765. (add-after 'install 'link-tools
  13766. (lambda* (#:key inputs outputs #:allow-other-keys)
  13767. (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
  13768. (symlink (string-append (assoc-ref inputs "prodigal")
  13769. "/bin/prodigal")
  13770. (string-append bin "ngless-" ,version "-prodigal"))
  13771. (symlink (string-append (assoc-ref inputs "minimap2")
  13772. "/bin/minimap2")
  13773. (string-append bin "ngless-" ,version "-minimap2"))
  13774. (symlink (string-append (assoc-ref inputs "samtools")
  13775. "/bin/samtools")
  13776. (string-append bin "ngless-" ,version "-samtools"))
  13777. (symlink (string-append (assoc-ref inputs "bwa")
  13778. "/bin/bwa")
  13779. (string-append bin "ngless-" ,version "-bwa"))
  13780. #t))))))
  13781. (inputs
  13782. `(("prodigal" ,prodigal)
  13783. ("bwa" ,bwa)
  13784. ("samtools" ,samtools)
  13785. ("minimap2" ,minimap2)
  13786. ("ghc-aeson" ,ghc-aeson)
  13787. ("ghc-ansi-terminal" ,ghc-ansi-terminal)
  13788. ("ghc-async" ,ghc-async)
  13789. ("ghc-atomic-write" ,ghc-atomic-write)
  13790. ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
  13791. ("ghc-chart" ,ghc-chart)
  13792. ("ghc-chart-cairo" ,ghc-chart-cairo)
  13793. ("ghc-conduit" ,ghc-conduit)
  13794. ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
  13795. ("ghc-conduit-combinators" ,ghc-conduit-combinators)
  13796. ("ghc-conduit-extra" ,ghc-conduit-extra)
  13797. ("ghc-configurator" ,ghc-configurator)
  13798. ("ghc-convertible" ,ghc-convertible)
  13799. ("ghc-data-default" ,ghc-data-default)
  13800. ("ghc-double-conversion" ,ghc-double-conversion)
  13801. ("ghc-edit-distance" ,ghc-edit-distance)
  13802. ("ghc-either" ,ghc-either)
  13803. ("ghc-errors" ,ghc-errors)
  13804. ("ghc-extra" ,ghc-extra)
  13805. ("ghc-filemanip" ,ghc-filemanip)
  13806. ("ghc-file-embed" ,ghc-file-embed)
  13807. ("ghc-gitrev" ,ghc-gitrev)
  13808. ("ghc-hashtables" ,ghc-hashtables)
  13809. ("ghc-http-conduit" ,ghc-http-conduit)
  13810. ("ghc-inline-c" ,ghc-inline-c)
  13811. ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
  13812. ("ghc-intervalmap" ,ghc-intervalmap)
  13813. ("ghc-missingh" ,ghc-missingh)
  13814. ("ghc-optparse-applicative" ,ghc-optparse-applicative)
  13815. ("ghc-parsec" ,ghc-parsec)
  13816. ("ghc-regex" ,ghc-regex)
  13817. ("ghc-safe" ,ghc-safe)
  13818. ("ghc-safeio" ,ghc-safeio)
  13819. ("ghc-strict" ,ghc-strict)
  13820. ("ghc-tar" ,ghc-tar)
  13821. ("ghc-text" ,ghc-text)
  13822. ("ghc-unliftio" ,ghc-unliftio)
  13823. ("ghc-unliftio-core" ,ghc-unliftio-core)
  13824. ("ghc-vector" ,ghc-vector)
  13825. ("ghc-yaml" ,ghc-yaml)
  13826. ("ghc-zlib" ,ghc-zlib)))
  13827. (propagated-inputs
  13828. `(("r-r6" ,r-r6)
  13829. ("r-hdf5r" ,r-hdf5r)
  13830. ("r-iterators" ,r-iterators)
  13831. ("r-itertools" ,r-itertools)
  13832. ("r-matrix" ,r-matrix)))
  13833. (native-inputs
  13834. `(("ghc-hpack" ,ghc-hpack)
  13835. ("ghc-quickcheck" ,ghc-quickcheck)
  13836. ("ghc-test-framework" ,ghc-test-framework)
  13837. ("ghc-test-framework-hunit",ghc-test-framework-hunit)
  13838. ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
  13839. ("ghc-test-framework-th" ,ghc-test-framework-th)))
  13840. (home-page "https://gitlab.com/ngless/ngless")
  13841. (synopsis "DSL for processing next-generation sequencing data")
  13842. (description "Ngless is a domain-specific language for
  13843. @dfn{next-generation sequencing} (NGS) data processing.")
  13844. (license license:expat)))
  13845. (define-public filtlong
  13846. ;; The recommended way to install is to clone the git repository
  13847. ;; https://github.com/rrwick/Filtlong#installation
  13848. ;; and the lastest release is more than nine months old
  13849. (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
  13850. (revision "1"))
  13851. (package
  13852. (name "filtlong")
  13853. (version (git-version "0.2.0" revision commit))
  13854. (source
  13855. (origin
  13856. (method git-fetch)
  13857. (uri (git-reference
  13858. (url "https://github.com/rrwick/Filtlong.git")
  13859. (commit commit)))
  13860. (file-name (git-file-name name version))
  13861. (sha256
  13862. (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
  13863. (build-system gnu-build-system)
  13864. (arguments
  13865. `(#:tests? #f ; no check target
  13866. #:phases
  13867. (modify-phases %standard-phases
  13868. (delete 'configure)
  13869. (replace 'install
  13870. (lambda* (#:key outputs #:allow-other-keys)
  13871. (let* ((out (assoc-ref outputs "out"))
  13872. (bin (string-append out "/bin"))
  13873. (scripts (string-append out "/share/filtlong/scripts")))
  13874. (install-file "bin/filtlong" bin)
  13875. (install-file "scripts/histogram.py" scripts)
  13876. (install-file "scripts/read_info_histograms.sh" scripts))
  13877. #t))
  13878. (add-after 'install 'wrap-program
  13879. (lambda* (#:key inputs outputs #:allow-other-keys)
  13880. (let* ((out (assoc-ref outputs "out"))
  13881. (path (getenv "PYTHONPATH")))
  13882. (wrap-program (string-append out
  13883. "/share/filtlong/scripts/histogram.py")
  13884. `("PYTHONPATH" ":" prefix (,path))))
  13885. #t))
  13886. (add-before 'check 'patch-tests
  13887. (lambda _
  13888. (substitute* "scripts/read_info_histograms.sh"
  13889. (("awk") (which "gawk")))
  13890. #t)))))
  13891. (inputs
  13892. `(("gawk" ,gawk) ;for read_info_histograms.sh
  13893. ("python" ,python-2) ;required for histogram.py
  13894. ("zlib" ,zlib)))
  13895. (home-page "https://github.com/rrwick/Filtlong/")
  13896. (synopsis "Tool for quality filtering of Nanopore and PacBio data")
  13897. (description
  13898. "The Filtlong package is a tool for filtering long reads by quality.
  13899. It can take a set of long reads and produce a smaller, better subset. It uses
  13900. both read length (longer is better) and read identity (higher is better) when
  13901. choosing which reads pass the filter.")
  13902. (license (list license:gpl3 ;filtlong
  13903. license:asl2.0))))) ;histogram.py
  13904. (define-public nanopolish
  13905. ;; The recommended way to install is to clone the git repository
  13906. ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
  13907. ;; Also, the differences between release and current version seem to be
  13908. ;; significant.
  13909. (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
  13910. (revision "1"))
  13911. (package
  13912. (name "nanopolish")
  13913. (version (git-version "0.10.2" revision commit))
  13914. (source
  13915. (origin
  13916. (method git-fetch)
  13917. (uri (git-reference
  13918. (url "https://github.com/jts/nanopolish.git")
  13919. (commit commit)
  13920. (recursive? #t)))
  13921. (file-name (git-file-name name version))
  13922. (sha256
  13923. (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))))
  13924. (build-system gnu-build-system)
  13925. (arguments
  13926. `(#:make-flags
  13927. `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
  13928. #:tests? #f ; no check target
  13929. #:phases
  13930. (modify-phases %standard-phases
  13931. (add-after 'unpack 'find-eigen
  13932. (lambda* (#:key inputs #:allow-other-keys)
  13933. (setenv "CPATH"
  13934. (string-append (assoc-ref inputs "eigen")
  13935. "/include/eigen3"))
  13936. #t))
  13937. (delete 'configure)
  13938. (replace 'install
  13939. (lambda* (#:key outputs #:allow-other-keys)
  13940. (let* ((out (assoc-ref outputs "out"))
  13941. (bin (string-append out "/bin"))
  13942. (scripts (string-append out "/share/nanopolish/scripts")))
  13943. (install-file "nanopolish" bin)
  13944. (for-each (lambda (file) (install-file file scripts))
  13945. (find-files "scripts" ".*"))
  13946. #t)))
  13947. (add-after 'install 'wrap-programs
  13948. (lambda* (#:key outputs #:allow-other-keys)
  13949. (for-each (lambda (file)
  13950. (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
  13951. (find-files "/share/nanopolish/scripts" "\\.py"))
  13952. (for-each (lambda (file)
  13953. (wrap-program file `("PERL5LIB" ":" prefix (,path))))
  13954. (find-files "/share/nanopolish/scripts" "\\.pl"))
  13955. #t)))))
  13956. (inputs
  13957. `(("eigen" ,eigen)
  13958. ("hdf5" ,hdf5)
  13959. ("htslib" ,htslib)
  13960. ("perl" ,perl)
  13961. ("python" ,python)
  13962. ("python-biopython" ,python-biopython)
  13963. ("python-numpy" ,python-numpy)
  13964. ("python-pysam" ,python-pysam)
  13965. ("python-scikit-learn" , python-scikit-learn)
  13966. ("python-scipy" ,python-scipy)
  13967. ("zlib" ,zlib)))
  13968. (home-page "https://github.com/jts/nanopolish")
  13969. (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
  13970. (description
  13971. "This package analyses the Oxford Nanopore sequencing data at signal-level.
  13972. Nanopolish can calculate an improved consensus sequence for a draft genome
  13973. assembly, detect base modifications, call SNPs (Single nucleotide
  13974. polymorphisms) and indels with respect to a reference genome and more.")
  13975. (license license:expat))))
  13976. (define-public cnvkit
  13977. (package
  13978. (name "cnvkit")
  13979. (version "0.9.5")
  13980. (source
  13981. (origin
  13982. (method git-fetch)
  13983. (uri (git-reference
  13984. (url "https://github.com/etal/cnvkit.git")
  13985. (commit (string-append "v" version))))
  13986. (file-name (git-file-name name version))
  13987. (sha256
  13988. (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
  13989. (build-system python-build-system)
  13990. (propagated-inputs
  13991. `(("python-biopython" ,python-biopython)
  13992. ("python-future" ,python-future)
  13993. ("python-matplotlib" ,python-matplotlib)
  13994. ("python-numpy" ,python-numpy)
  13995. ("python-reportlab" ,python-reportlab)
  13996. ("python-pandas" ,python-pandas)
  13997. ("python-pysam" ,python-pysam)
  13998. ("python-pyfaidx" ,python-pyfaidx)
  13999. ("python-scipy" ,python-scipy)
  14000. ;; R packages
  14001. ("r-dnacopy" ,r-dnacopy)))
  14002. (home-page "https://cnvkit.readthedocs.org/")
  14003. (synopsis "Copy number variant detection from targeted DNA sequencing")
  14004. (description
  14005. "CNVkit is a Python library and command-line software toolkit to infer
  14006. and visualize copy number from high-throughput DNA sequencing data. It is
  14007. designed for use with hybrid capture, including both whole-exome and custom
  14008. target panels, and short-read sequencing platforms such as Illumina and Ion
  14009. Torrent.")
  14010. (license license:asl2.0)))
  14011. (define-public python-pyfit-sne
  14012. (package
  14013. (name "python-pyfit-sne")
  14014. (version "1.0.1")
  14015. (source
  14016. (origin
  14017. (method git-fetch)
  14018. (uri (git-reference
  14019. (url "https://github.com/KlugerLab/pyFIt-SNE.git")
  14020. (commit version)))
  14021. (file-name (git-file-name name version))
  14022. (sha256
  14023. (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
  14024. (build-system python-build-system)
  14025. (propagated-inputs
  14026. `(("python-numpy" ,python-numpy)))
  14027. (inputs
  14028. `(("fftw" ,fftw)))
  14029. (native-inputs
  14030. `(("python-cython" ,python-cython)))
  14031. (home-page "https://github.com/KlugerLab/pyFIt-SNE")
  14032. (synopsis "FFT-accelerated Interpolation-based t-SNE")
  14033. (description
  14034. "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
  14035. method for dimensionality reduction and visualization of high dimensional
  14036. datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
  14037. approximate the gradient at each iteration of gradient descent. This package
  14038. is a Cython wrapper for FIt-SNE.")
  14039. (license license:bsd-4)))