alanocallaghan / scater

Clone of the Bioconductor repository for the scater package.
https://bioconductor.org/packages/devel/bioc/html/scater.html
95 stars 40 forks source link

runPCA segfault #214

Closed wakelin-g closed 1 week ago

wakelin-g commented 1 week ago

Hi guys,

I am catching a segfault when using runPCA on essentially anything. Does anyone have any ideas what might be causing it?

library(scater)
m <- matrix(rnorm(10000), nrow=100, ncol=100)
sce <- SingleCellExperiment(assays=list(logcounts=log1p(m))
sce <- runPCA(sce)
Full trace ``` *** caught segfault *** address 0x1f5, cause 'invalid permissions' Traceback: 1: compute_center(ptr, nthreads) 2: .compute_center_and_scale(x, center, scale, nthreads = bpnworkers(BPPARAM)) 3: (function (x, k = 5, nu = k, nv = k, center = FALSE, scale = FALSE, deferred = FALSE, extra.work = 7, ..., fold = Inf, BPPARAM = SerialParam()) { if (nu == 0 && nv == 0 && k == 0) { return(list(d = numeric(0), u = matrix(0, nrow(x), 0), v = matrix(0, ncol(x), 0))) } checked <- check_numbers(k = k, nu = nu, nv = nv, limit = min(dim(x)) - 1L) k <- checked$k nv <- checked$nv nu <- checked$nu old <- getAutoBPPARAM() setAutoBPPARAM(BPPARAM) on.exit(setAutoBPPARAM(old)) if (!.bpisup2(BPPARAM)) { bpstart(BPPARAM) on.exit(bpstop(BPPARAM), add = TRUE) } args <- list(work = max(k, nu, nv) + extra.work, ...) if (use_crossprod(x, fold)) { x <- standardize_matrix(x, center = center, scale = scale, deferred = deferred, BPPARAM = BPPARAM) res <- do.call(svd_via_crossprod, c(list(x, k = k, nu = nu, nv = nv, FUN = irlba, BPPARAM = BPPARAM), args)) } else { args$nu <- nu args$nv <- max(k, nv) if (bpnworkers(BPPARAM) == 1L) { stats <- .compute_center_and_scale(x, center, scale, nthreads = bpnworkers(BPPARAM)) res <- do.call(irlba, c(args, list(A = x, center = stats$center, scale = stats$scale))) } else { x <- standardize_matrix(x, center = center, scale = scale, deferred = deferred, BPPARAM = BPPARAM) res <- do.call(irlba, c(list(A = x, fastpath = FALSE), args)) } res$v <- res$v[, seq_len(nv), drop = FALSE] res$d <- head(res$d, k) res <- standardize_output_SVD(res, x) } res})(x = c(1.52900083969766, 1.69205151985914, 1.82202974800099, 1.96022621958905, 1.83409765648279, 1.79641553159751, 1.74796080430389, 2.03524660777028, 1.85860828646435, 1.9638660484713, 1.75214514467655, 1.68889151415908, 1.70396069792009, 1.62313431196837, 1.92848501569001, 1.58091717690577, 1.44923927944104, 1.42635816355124, 2.00100565832429, 1.96852852324167, 1.7444218436406, 1.92601507377643, 1.37893336965639, 2.03871607187315, 2.00921881021526, 1.57639273427835, 1.81970990611259, 2.04319074864079, 1.7027163342375, 1.78701319419589, 1.87040903721128, 1.58905906173979, 1.79060685900288, 1.92252234631354, 1.6510292191471, 1.63282292412743, 1.56765502174395, 1.72867694238393, 1.96887284737133, 2.10850369144431, 2.06767507651052, 1.81352811371186, 1.87979100075833, 2.09403243756855, 1.69071025859156, 1.70298537863131, 1.77215674446048, 1.61064636147169, 2.0691729159833, 1.87537102233297, 1.53257039081905, 1.89577404364368, 1.94062187674514, 1.81307017971199, 1.56145493312798, 1.51367400853557, 1.39816853948338, 1.73373826943585, 1.72899302180107, 1.71693707561157, 1.81760910542018, 1.77133128569526, 1.76585831010219, 1.86958527699697, 1.50063740958347, 2.01825738279848, 1.74771177759793, 1.88639872266736, 1.91559574653967, 2.15592265576316, 1.95957989421114, 2.01936549448572, 1.73906610117593, 1.66417655581569, 1.62265176184994, 1.76447265731025, 1.71623436508603, 1.88657282804378, 1.34132066401626, 1.88507089497423, 1.50694928271244, 2.02597962813568, 1.71440072906972, 2.04566643108692, 2.06372571837109, 1.82992229194213, 1.91145247377323, 1.78116635490374, 1.45641149204732, 1.89237881290608, 1.80357717498171, 1.93265128465588, 1.83096838852949, 1.89147525125459, 1.71252022448063, 1.75903946298352, 1.79715338543313, 1.96360319017085, 1.82861052867798, 1.7472416354049, 1.91018876860537, 1.80829034341736, 1.84356865125838, 2.2074821043866, 1.83751193229044, 1.65445130643978, 1.59801113025874, 1.53912879439475, 1.34789535741621, 2.10745753143445, 1.69832741419277, 1.67560202243129, 1.95365531796125, 1.91107709578508, 1.78590318400917, 1.95692585692999, 1.3148963097076, 1.9270602555292, 1.64639087989481, 1.37565969666382, 1.88191651074939, 1.25478333771524, 1.66390911510388, 1.84068453063471, 1.98066211057444, 1.85883144027855, 1.55688997798388, 1.85670758674199, 1.69778847056269, 1.90117070922338, 1.57405321746498, 1.78615847141597, 1.86369722238097, 2.03485061885492, 1.6242229852806, 2.00231180772686, 1.60968661836814, 1.81712807929066, 1.7637557756128, 1.85948743325044, 1.9892588319803, 1.78585739180387, 1.43315097886708, 2.00152031694589, 1.55660077355527, 1.75585689448143, 1.97769215510779, 1.9077076684398, 1.33932377262287, 1.77468148527541, 1.77576754032274, 2.05361280152164, 1.87113029644333, 1.88504369861455, 1.67776478095533, 1.93820330625418, 1.73527160654204, 2.03366208189983, 2.07117027404417, 1.90449936688543, 1.76359365508321, 1.70026857051522, 1.81649523615917, 1.50468045916619, 1.31512550987747, 1.59848636209794, 1.78836004502704, 2.07274916934398, 1.77546116518088, 2.02457251322825, 1.55947425487279, 1.57487584196823, 1.80283572608895, 1.89478285232014, 1.47224488189528, 1.93669385956302, 1.91739411332674, 1.8510810667476, 1.89694159012302, 1.92716872898123, 1.71734001308641, 1.61492344885496, 1.99000416230235, 1.87761138043112, 2.03571358429498, 1.77517934010183, 1.87126142202166, 2.04724014498218, 1.72169327894199, 1.56100716503274, 1.69230345067714, 2.02707639461526, 1.82889829009926, 1.88829423458969, 1.83023609247936, 1.6702889832842, 1.45602707916347, 1.98368515866764, 2.0038751169747, 1.94547177963681, 1.62381122381673, 1.85703571141422, 1.7563495077448, 1.81974906906398, 1.35937756264975, 1.89469094647249, 1.55973434453914, 1.66690428422839, 1.60249627482518, 1.94982752949562, 2.05025433514942, 1.82766813053735, 2.05817499949913, 1.72257775252309, 1.63219069694282, 1.46926384403765, 1.69158214846961, 1.64673011802409, 1.80384793705366, 1.84803587822047, 1.81973683423452, 2.09399446669426, 1.9196982534005, 1.77565706281001, 1.82063823446275, 1.60672630992038, 1.90756461643639, 1.71875038397354, 1.56545856287191, 1.62681834979686, 1.81904859714494, 1.79393161050325, 1.57494943823884, 1.88873525532291, 1.66909602094987, 1.72569206195747, 1.79373142730515, 1.98602414205903, 1.9561452039117, 2.00195813355094, 2.03504426451086, 1.50964427775738, 1.72995390390281, 1.73414552213823, 1.90637641884293, 1.47341343663979, 1.75180927974086, 1.83916354037381, 2.12151523068589, 1.81873271671688, 1.74586859304906, 1.84333536498871, 1.85740373178898, 2.05513500384513, 1.67384280585468, 1.8339871437169, 1.63076315487709, 1.92398081399186, 2.08685304481342, 1.61066529125693, 1.7816567111644, 1.74300971182166, 1.81813669212525, 1.8103607126299, 1.75904978974318, 1.62519878749378, 2.07408223813539, 1.93352890499298, 1.96931150523967, 1.50826424877788, 1.6527576376219, 1.89795593412515, 1.72993174021037, 1.69004779248272, 1.6019304223223, 1.87475955854373, 1.77713813485731, 1.69479566268104, 1.48814793297449, 1.92539166190251, 1.57088393265216, 2.10973343094601, 1.80317748657888, 1.63987119800232, 1.24622221199165, 1.73949783322924, 1.87859054077704, 1.97908448633367, 1.71681948101172, 1.62838132914624, 2.00736493523164, 1.56859505118159, 1.41088228926786, 2.08608539824988, 1.67752606235303, 1.77252876402304, 1.83200089760981, 1.72952907809725, 1.57946910369485, 1.56951311196185, 1.54011491738086, 1.64959417716722, 1.97625875023096, 1.5935770844363, 2.01493094419887, 1.6898114467369, 1.82209944344751, 1.74192417884184, 2.19930986078573, 1.82829146359578, 1.6337268232211, 1.70191528200245, 1.81937344496633, 1.79622808887551, 1.78319821537711, 1.82361278880287, 1.62855559281787, 1.59370761337712, 1.7987618919743, 1.48202221782735, 1.5418919585642, 1.88459504545117, 1.81811281212339, 1.51077267932763, 1.57592363105495, 1.93376617484305, 1.71028782158582, 1.90877854789303, 1.95201156964208, 1.34287585828837, 1.77304538924043, 1.73667847589802, 1.95373837953896, 1.87727656626558, 1.84732166831068, 1.44275999932856, 1.88336154235039, 1.85920083634057, 1.79294658785857, 1.54708566472578, 1.7203696180005, 1.85359277071154, 1.85466242618673, 1.61486410921878, 1.69541276883022, 2.00931503438135, 1.74726194036086, 1.78244887660556, 1.6472593101449, 1.8067521343512, 1.77729806126053, 1.60252940745138, 1.89976902709575, 1.77196982108608, 1.86829124847213, 1.64599289604337, 1.75756886407503, 1.91870404226356, 1.88771260515995, 1.9929268512554, 1.76605405144885, 1.8177462029268, 1.50897832296503, 1.79710967399234, 1.67924089778264, 1.81704004568281, 1.98892649757933, 1.44003424335097, 1.64754480813028, 1.36445158867652, 1.77055003771451, 1.69252083546186, 1.85254296447343, 1.75352445716731, 2.11551105562438, 1.87716457049793, 1.79811969345974, 1.55782380763808, 2.03938440345879, 1.68709985646081, 1.82100144408989, 1.63310913632244, 1.77839243038004, 1.73506096502056, 1.951683797797, 1.85726364762635, 2.02315183425521, 1.72617794704057, 1.79706429763931, 1.90301810450227, 1.98785864288828, 1.84585849012894, 1.34453421272545, 1.53509453169015, 1.87559628493621, 1.89816640170601, 1.59458753711569, 1.64086001083935, 2.02119045858345, 1.63472616527054, 2.08289227245948, 1.32998734501842, 1.93086055480576, 1.67197718135142, 1.61245592524677, 1.72361524098923, 1.75884443956601, 1.74546993833062, 1.50132293093953, 1.66319922628718, 1.51460622847446, 1.66543222414412, 1.74322371760372, 1.73038497842915, 1.93619673802902, 1.47618808781927, 1.87673593625978, 1.74150370742044, 1.64574850725106, 1.69859854663551, 1.71812881051635, 1.75615739161644, 1.47269397341292, 1.89541571306781, 1.71758236181813, 1.83169621598323, 1.82503249654924, 1.75633683363007, 1.85658973591082, 1.6267569481674, 2.0664529541804, 1.64119860788115, 1.89824740294013, 2.10033780454922, 1.94774649352725, 1.76484195869715, 1.53817948851172, 1.69964332612873, 1.80624113448309, 1.74319359857522, 1.73339193781476, 1.81625131592114, 1.65078340744738, 1.55498848648896, 1.62706983505004, 1.73699284061003, 1.86644285454117, 1.82650756057511, 1.82822098618581, 2.0769670923221, 2.02053791122275, 1.71291840599998, 1.82475736949813, 1.81708309551465, 1.9084281517113, 1.87709717780714, 1.87156559416871, 1.70099508088445, 1.29731151566004, 1.89675145268825, 1.98197911377367, 1.92726747874599, 1.60441466130756, 1.81767553967015, 1.66921046024926, 2.00576383702828, 1.59662989173723, 1.7871795960229, 1.6189289921354, 1.6727527164759, 1.8749914899383, 1.83268885737398, 2.07728307024346, 1.74535153305435, 1.77702496361326, 2.03003198067041, 1.84652388056373, 2.03326236886913, 1.98483412388619, 1.68939002216734, 1.8150374655223, 1.51505451105699, 1.8218844963898, 1.87427058845836, 1.69141784150275, 1.76541374296005, 1.90535567232408, 1.46870721492963, 1.92555455817459, 1.56418293540864, 1.18758692444304, 1.49815289112287, 2.01856615429395, 1.82943398458493, 1.8102831972344, 2.03058632808647, 1.89610906757542, 1.54502971171619, 1.82072739612378, 1.85109823214557, 1.27100577887312, 2.01760466289768, 1.9809004835811, 1.7899483093441, 1.57867027256849, 1.88261826969063, 1.66355379944433, 1.74866324666993, 2.0640107408864, 1.74107775023894, 2.03626353875736, 1.96355555386298, 1.78162949874357, 1.24110740348338, 1.33823594579022, 1.89881779536639, 1.54977003064311, 1.49878447641907, 1.79406198764811, 1.72966154514438, 1.94635270926058, 1.90255457406477, 1.8803990851815, 2.00538759866367, 2.07806033903362, 1.92963278536997, 1.96601715149546, 1.6454958994314, 1.57862040193649, 1.84908743953881, 2.06772161287373, 1.76760195627048, 1.93029803757297, 1.94188902277223, 1.93735991586455, 2.02992754870827, 2.07395670334583, 1.86161799608783, 1.6684353720161, 1.93652743788409, 1.53615039673686, 1.73586304492402, 1.79200135395062, 1.65769237279634, 1.78302938246228, 1.48129758810371, 1.7132977278929, 1.84671715891775, 1.47644961367524, 1.90444955168034, 1.84708582453666, 1.5316196847205, 1.88340308053054, 1.88422585633869, 1.57955316134585, 1.88140689788529, 1.94290077815457, 1.97340343513247, 1.49064706240454, 1.57812181558761, 1.70098723706654, 1.50904642563178, 1.74410942817103, 1.99137393202602, 1.72935331808235, 1.72803497667304, 1.81031493887295, 1.3530753099857, 1.70388029136659, 1.83365224210159, 1.77689548296412, 2.00411271497498, 1.76739875986711, 1.92407680818453, 1.73406401228076, 1.60749981176042, 2.10002389646189, 1.60148423212493, 1.80846393410633, 2.00510457373887, 1.99435789086818, 1.92029161854331, 2.05301208561492, 1.61462853157043, 1.9693772830439, 1.87791016052537, 1.80033340886363, 2.07479666704826, 1.70436814923437, 1.81890256232672, 1.7598724252544, 1.7696886974468, 1.90497765472951, 1.5980148961755, 1.28617803633666, 1.67012631959919, 1.84539295636568, 1.90150008048551, 1.89411182598101, 1.76774644348591, 1.74971327898067, 1.51335753815507, 1.88491953312801, 1.91040160585167, 1.90049000163984, 2.01273477453769, 1.59258657082682, 1.85866348764561, 1.84046132004661, 1.75200645130744, 1.9032255481481, 1.93426867015877, 1.66241455054715, 1.60384874697705, 1.86044443736724, 1.84197914419287, 1.95739830886038, 1.889944526323, 1.71717375542975, 1.71061505353444, 1.92164096271244, 1.71545245732013, 1.61267081886699, 2.04663410602935, 1.91087762648932, 2.07539226715585, 1.42423271673618, 1.67948218893181, 1.68833607663796, 1.64471571408074, 1.9190594717834, 1.63497345087471, 1.79780594523333, 1.25308945160482, 1.58217842347253, 1.89882307093442, 1.89581912680801, 1.91468431984375, 1.91015350011078, 1.63886726454102, 1.98521647114728, 1.67956741958318, 1.49067299157628, 1.770978908768, 1.7033237035708, 1.80477803080678, 1.90001693509888, 1.68547790874806, 1.92546077250094, 1.66549155443358, 1.66379043214457, 1.75658339827775, 1.65520571006755, 1.64059751894835, 1.83285439836358, 1.80720796192959, 1.88910350198707, 1.57000342650799, 1.72071102965979, 1.68276311777869, 1.64513033007902, 1.67641648955899, 2.00579881126353, 1.8602534954624, 1.95908261940785, 1.69089776456826, 1.77587993376528, 2.18261885588168, 1.74510105577238, 1.68042709085962, 1.89810370765055, 1.78344949515294, 1.93622961709645, 1.62180879599029, 1.92155628994613, 1.65226328601815, 1.98044574121686, 1.89999616890615, 1.85492345140151, 1.73565393948668, 1.75207648634789, 1.80270671592182, 1.69242715496647, 1.89843129741421, 1.98881512092725, 1.79791550495633, 1.8102262206903, 1.60628482035931, 1.66691452297934, 1.87350898600606, 2.01616695373609, 1.75958221090098, 1.87384638585042, 2.1263204560883, 1.93604593136686, 1.70067879434979, 1.92599021590612, 1.80570565544957, 1.8432677417658, 1.85604544192516, 1.7067059235151, 1.85276790137954, 1.8272410883523, 1.35099472028895, 1.77163039807345, 2.02990588227468, 1.94650140466313, 1.84505686994657, 2.04236280251364, 1.74476984107178, 1.41810331153148, 1.78623264974712, 1.89758012625608, 1.82356010334381, 1.43949554382556, 1.32573053571554, 1.96185573043786, 1.75894743234908, 1.79287673438005, 1.6512663478416, 2.0028654793985, 1.69636066214304, 1.46653748506624, 1.77983710544368, 1.8809261469848, 1.72743016261857, 2.01623841282876, 1.8673633765175, 1.77501583156587, 1.71213839974457, 1.57435691655137, 1.66513065790655, 1.67117120809688, 2.06428917924229, 1.56728587917776, 1.72710408971498, 2.06034598432981, 1.86522162575147, 1.5481783276124, 1.5605801822319, 1.89045357681638, 1.85869193781749, 1.74460695512309, 1.67571691902125, 1.81520772154204, 1.77766898430058, 1.68035288967478, 1.8212427347044, 1.48898641835011, 1.72828493784987, 1.8593096842206, 1.47744235610934, 1.83598321607998, 1.76576342971488, 1.81351636422947, 1.91765977197895, 1.86866380862573, 1.91160355444661, 1.69022940101429, 2.07221849896273, 1.76962809844141, 1.62302465180247, 1.49354906520007, 1.73770302832396, 1.97482891658426, 2.01321902397098, 1.59143082412314, 1.61083925829509, 1.86767632685847, 1.86571772123612, 1.82337568784941, 1.8217525378926, 1.64589400995024, 2.02877184497648, 1.56668308753739, 1.64607453760223, 1.82719923673864, 2.09251639579486, 2.16432319969498, 1.92051591340033, 1.88155932905808, 1.67414961232896, 1.45543965151419, 1.47829583666591, 2.11462135927611, 1.75810162565247, 1.99963616475224, 1.96019757531094, 1.80233182885367, 1.81014292242863, 1.81944169097852, 1.92794317563801, 1.51768289098132, 1.8275291306393, 1.99821970234403, 2.04992571216868, 1.64876352986086, 1.74843654283851, 1.87647535813718, 1.69828597871739, 1.7716301596321, 1.94871128542005, 1.67567243055683, 1.29295144457509, 1.83862577478961, 1.92701559558012, 1.79538965726626, 1.80280630326718, 1.80750442746109, 1.85762906320868, 1.73819148115707, 1.6675535506911, 1.91273840172511, 1.66681470186278, 1.76207986975891, 1.75971884756497, 1.97423067826106, 1.78612614760201, 1.84601068681625, 1.95031459809693, 1.69198896976483, 1.54980100862236, 1.78119901999819, 1.45561394223356, 1.71508433460443, 1.38651783888229, 1.49475957052872, 1.58383842488209, 1.86475554824936, 1.77356435294753, 2.02665465359246, 1.87564239505989, 1.67897244512994, 1.87933283302572, 1.48925797698033, 1.82693455568578, 2.02988673553545, 1.92473562057492, 1.84808788410452, 1.74085066656247, 1.91754756222296, 1.9479876254522, 1.75298972271092, 1.615674511346, 1.83075882762443, 1.58936530617022, 1.2680781757491, 2.03186689137766, 2.13290054806246, 1.78380263307139, 1.95022585264952, 1.86724333659285, 1.92284973050755, 1.73495204829639, 1.48409650750472, 1.61021158595409, 1.92669658186777, 1.6078372812859, 1.81636918121868, 1.7623198745532, 1.73520313295474, 1.42395998519052, 1.86648382826063, 1.78979812870387, 1.82709211098505, 1.7873766862367, 1.89282726741669, 1.82299668499425, 1.96692593904844, 1.8568915951851, 1.68170354269535, 1.62282111629071, 1.58334871326196, 1.80236790727458, 1.65653373632444, 1.78551246108258, 1.99788044770793, 1.80118708865133, 1.73592777709103, 1.62356455142276, 1.6683852158884, 1.5895475183413, 2.1546108717615, 1.78100899525648, 1.81443922732088, 1.89217765854969, 2.09838028362176, 1.71410964185461, 1.77844756372545, 1.91170338063735, 1.67822902148633, 1.76404582742008, 1.85351820370726, 1.85403078004973, 1.73995967746396, 1.58941237926507, 1.80694799104216, 1.83182848067269, 1.56867171252991, 1.84499598961129, 1.90337735860396, 1.97490749832374, 1.81489096646961, 1.63824829940441, 1.75462859234972, 0.870161478751147, 1.54236056403175, 1.9336933800785, 1.87290069807064, 1.68745544681816, 1.66265053460902, 1.75554862261266, 1.53372749839704, 1.91376274119035, 2.0280928140547, 1.27926985903815, 1.90717088380602, 1.88663616808807, 1.88521933903387, 1.81594542320704, 1.7832372651145, 1.52321267732815, 1.82527312736128, 1.83661742721983, 1.97550911745078, 1.71571271520285, 1.8278620726594, 1.96354803399374, 1.78422277515748, 1.86998051653885, 1.86241503221957, 1.5507958215275, 1.91643196458472, 1.91296030952142, 1.57290469825751, 1.88599515747976, 1.96934954313476, 1.62217864747194, 1.71741659728775, 1.69717798026449, 1.57700182125299, 1.60547927310109, 1.9447183985409, 1.53201245192813, 1.84209889453059, 1.74000483175759, 1.87621583163718, 1.50376253034018, 1.91237116527445, 1.77938851109643, 1.89233774641285, 1.60326396500443, 1.76937904254598, 1.86180931920738, 1.80251440297548, 1.78920836960476, 1.6729262324424, 1.57400077680479, 1.65166227147653, 1.79267742411567, 1.51430574452485, 2.04969015490676, 1.8219608806289, 1.90544999839483, 2.01696528004547, 2.0289342916479, 1.61456141924149, 1.82695536713798, 1.79395056177043, 1.67643323323451, 1.64090769084413, 1.91664262138222, 1.91078916343473, 1.46648489267375, 1.55107760802825, 1.77824051334506, 2.0065329804699, 1.76031550616885, 1.98123000320409, 1.83739310550466, 2.06162085433608, 1.86110865628956, 1.91263033675146, 1.95818955110733, 1.85747277474582, 1.52948339896113, 1.28479831831685, 1.70976689940637, 1.79900927188306, 2.20683858363568, 1.75932578686162, 1.78340469181463, 1.67747064586091, 1.74755305179208, 1.86357400770705, 1.79699233618021, 1.76087804202767, 1.85398262957654, 1.67512759330305, 1.85937680466042, 1.99964532630185, 1.97529458119573, 1.70586440241751, 1.92979800447876, 1.67226862009069, 1.77627017368476, 1.79468449852382, 1.97622362398216, 1.74809429441036, 1.96907054258094, 1.74417143163729, 1.85690494421554, 1.8050187717662, 1.92173936314693, 1.95080536397913, 1.70577705064522, 2.10779491024228, 1.66656455048991, 1.76258550967572, 1.95196091527292, 1.36109786682016, 1.85277660929509, 1.73190258769455, 1.87700960221967, 1.91194688081096, 1.44283118844193, 2.07231650771788, 1.76449536887527, 1.93837805351982, 1.54818608572923, 1.82922572462868, 1.94610646145052, 1.84144360726859, 1.63078042546909, 1.80177262426731, 1.70090502287261, 1.86661433640987, 1.60067569571354, 1.65739003635487, 1.80140624387151, 1.29157657604991, 1.83455219760898, 2.051941598541, 1.22346827398795, 1.79251000723213, 2.1522326068297, 1.82546938511816, 1.63078831390012, 2.02507442234486, 2.00062097175635, 1.93485834553252, 1.56135377265874, 1.56275639856915, 1.76415584239697, 1.81521610787325, 1.79320448876313, 1.98779873291038, 1.77472793490824, 2.06011448233497, 1.82728823983909, 1.94686690617549, 1.77424087519116, 1.85874726940679, 1.89897294408482, 1.56039406065204, 1.76974232906075, 1.95329086842069, 1.93551294586881, 1.69473668306026, 2.00746020532894, 1.8343920509217, 1.79002797795387, 1.69263373175545, 1.84030174394468, 1.59515205162216, 1.9001996695527, 1.90129713259578, 1.60480886708488, 1.76370461180199, 1.78435329270537, 1.79095799771744, 1.72480247827737, 1.76953734671655, 1.76591187815377, 2.19547459825694, 1.65940662805522, 1.80182956907689, 2.06588789876522, 1.8849699384499, 1.76646468951501, 1.37480486401724, 1.8750091731439, 1.68756313427627, 1.9772018817687, 1.85416980961106, 1.72628237669607, 1.65188446012705, 1.83464133674901, 1.7173437555963, 2.02662174566941, 1.77019193299417, 1.97548414935497, 1.8224340881882, 1.58027850316769, 1.51100214327586, 1.60343868933298, 1.60508531098004, 1.72284295454492, 1.87748867290681, 1.83808691211032, 1.80019633516062, 1.87743565151144, 1.97328170400422, 1.65566173430243, 1.52747806391457, 1.9179848750189, 1.72169780969337, 2.17296959582735, 1.83470723582916, 1.87541459388601, 1.69010595397194, 1.81444102863295, 1.78597639054288, 1.67864412166716, 1.55121670706883, 1.73324054496013, 1.75756669427157, 1.8614954722731, 1.80248587014053, 2.01049992906557, 1.8265683666839, 1.44847567639875, 1.89777810706386, 1.8769926508635, 1.65737774901377, 1.73673084315078, 1.69983685358027, 1.8355837459785, 1.2748388636777, 1.68840824986154, 2.18157382737921, 1.82169776561624, 1.87441045100474, 1.6109192538936, 1.38090381618236, 1.79807713815289, 1.96831966116899, 2.09497165168457, 2.05435986950823, 2.00393540345743, 1.85869324380838, 1.67583895919781, 1.5884870658882, 1.85310006424592, 1.89006988733805, 1.89238184390839, 1.86335813447795, 1.74007038580206, 1.95134186038971, 1.83437076268287, 1.57297856872195, 1.99904693286638, 1.72351305718483, 1.7355690128286, 1.95596493515992, 1.79381118077707, 1.86458404382935, 1.7411785432592, 1.62938693177379, 1.50593357454425, 1.5690063776142, 1.66303953189688, 1.9120587121047, 1.51364418034907, 1.7715315614784, 1.342627934385, 1.79095341294095, 1.85301276874367, 1.6701752222854, 1.76320536112788, 1.78147790099362, 1.75744781760403, 1.35972327219374, 2.00749680752563, 1.9002213518159, 1.22619887965399, 1.88076535207098, 1.96639483170688, 1.92403919924867, 1.80128006502147, 1.99891679518251, 1.33507993968391, 1.98447561543971, 1.8434459585994, 1.85436249780276, 1.95383215986069, 2.01498677487347, 1.40385668623464, 2.07474580392351, 1.68282724714777, 1.87874989390195, 1.75168028057846, 1.7574374849991, 1.56242481180991, 1.4763815085534, 2.12821948674112, 1.85246009475059, 1.69019623689023, 1.86058786412163, 1.83500745385661, 1.70921081882128, 1.54393047184008, 1.56244061102631, 1.94324525511704, 1.46385654218806, 1.95767278143852, 2.01225502583339, 1.71664216028884, 1.92884251273338, 1.95708595894954, 1.66529477714224, 1.94462937865101, 1.58697426110728, 1.96767052836548, 1.92954568212548, 1.98545716977566, 1.56292422528625, 1.8920475240106, 1.84436531093051, 1.7948235787778, 1.70076515151836, 1.5222852511653, 1.83311077565548, 1.9195082967285, 1.82646249159412, 1.78705885042872, 1.89284169263899, 1.3346612304469, 1.88046881327381, 1.41477676724527, 1.62631166285376, 1.46114605809165, 1.82250181184364, 1.57656963759858, 1.87502601043673, 1.65999523647474, 1.7441038716933, 1.95013280671762, 1.74405580979272, 1.86533742621746, 1.22782698606883, 1.83394458488815, 1.83445287846246, 1.93967966011822, 1.66047566466079, 1.7165710572367, 2.02523840745574, 1.73548952361009, 1.64604926201903, 1.6614489778593, 1.54165094280201, 1.95692091587779, 2.0223399101491, 1.93064654506278, 1.7409930435006, 1.96600487853814, 1.81876039126129, 1.80173804485018, 1.86160510348005, 1.61904020772797, 2.05915393539892, 1.69253238699947, 1.79437380403287, 1.67067263081935, 1.65649736594997, 1.87800109492229, 1.61683260142849, 1.88938954815295, 1.86608829202787, 1.81612503008456, 1.82796499045527, 1.55029751583546, 1.4343537950698, 1.74277360340349, 1.658761881359, 1.5365305329669, 1.54106076221873, 1.79974740919348, 1.67270700439004, 1.70761339107135, 1.71720891731127, 2.10321035377915, 1.75459016049515, 1.72704712307331, 1.39307576548333, 2.12184949068673, 1.50797143072005, 1.9679074328748, 1.48752598207727, 1.87756389942347, 2.03105227935893, 1.89342563046927, 1.81762605134296, 1.54117315086726, 1.61227145090256, 1.92624569243946, 1.6457566990262, 1.8212335911334, 1.64343325587389, 1.96159533088982, 1.78034184958369, 1.63979873948671, 2.02332630128875, 1.64322528223472, 1.76703349376858, 1.78813594889845, 1.95317713045408, 1.90796725871312, 1.8844240747376, 1.8967428514846, 1.74554034268507, 1.55470833813631, 1.59745287035899, 1.84011091527594, 1.83424991686255, 1.49305565863179, 1.59688825590136, 1.80549054861427, 1.87872515543643, 1.90751038919429, 2.1121589298116, 1.89359140764576, 2.0735921032253, 1.84912257938029, 1.97709976814881, 1.97257865783379, 2.02130366400271, 1.9071273043872, 1.68721376516125, 1.74931852904011, 1.89567680998572, 1.83978362927116, 1.7954768254042, 1.69926423193995, 1.73013597491215, 1.48298352932866, 2.02558150447606, 1.83328677670064, 1.93884348246637, 1.48607072361361, 1.57025876738941, 1.59004350019781, 1.89065309106476, 1.62315507235539, 1.74110114912744, 1.60110887946089, 1.83386259216967, 1.67425973101741, 2.01034470449155, 1.63873569495538, 2.04735847657833, 1.51393976150002, 1.97942986186306, 1.97144689671691, 1.80211300934842, 1.982892078924, 1.94221088890029, 1.95854983075527, 1.7143072470127, 1.66082073879814, 1.97414636587155, 1.98339484283797, 1.50218912085562, 1.58112606982148, 1.82147347666192, 1.87461712267161, 1.9974421879213, 1.88357650614996, 1.81717322296024, 1.72472295180086, 1.96744634357263, 1.92010831944544, 1.87333799986587, 1.6651346830886, 1.3125673270687, 1.53788315623675, 1.86614906474268, 1.90548060552288, 1.9347457155717, 1.78706612220678, 1.22085421338125, 1.52671202059232, 1.71063387449896, 1.57394149658541, 1.81716735794567, 1.5756548772699, 1.71570721930467, 1.78393178842779, 1.58224148699351, 1.36496820400214, 1.57609356755161, 1.52701962893696, 1.99662933584242, 1.5081173467004, 1.72475559717851, 1.73532867764877, 1.8117990365467, 1.72804145624136, 1.58958296999234, 1.80513758750613, 2.00883514799818, 1.56236556187448, 1.80596971446632, 1.78387445833284, 1.70817474847369, 1.64184369114396, 1.95479365117953, 1.68364383144729, 1.79497994865182, 1.76215607348876, 1.638235615323, 1.61406299290796, 1.74795353600022, 1.6838041430609, 1.86949276508681, 1.97081810688713, 1.97347262913955, 1.60485850045073, 1.48847526864952, 1.87166192965057, 1.64501449963688, 1.70136378174936, 1.79580459957126, 1.76674919298011, 1.64726169651151, 2.07339929272852, 1.78474962131675, 1.93364696811567, 1.86731291509463, 2.1785877792449, 2.07914999109138, 1.75548131078637, 1.5239525371725, 1.6407029973183, 1.7679991402863, 1.74924575568986, 1.8046259232716, 1.79088562194767, 1.6572506779151, 1.8013251736531, 1.8401091098019, 1.82946301524861, 1.82738828239398, 1.83992081805591, 1.92117218813831, 1.92206643969965, 1.78723129616704, 1.94909695809702, 2.08727454326134, 1.62142067956761, 1.7987192607824, 1.61160079053427, 1.94898765417681, 1.9352450258192, 1.77155819926772, 1.89492129948344, 1.94714992416562, 1.92025564587025, 1.86904399423986, 1.96210971068881, 1.78766098202681, 1.89980045206437, 1.90831629144531, 1.83827661834881, 1.63665499597772, 1.70413150829392, 1.8354909145841, 1.50005503843134, 1.92744151231528, 1.6045810062744, 1.95426660718422, 1.84863788802108, 1.51934853403384, 1.89972586110924, 1.63810555685846, 1.84604188665661, 1.77374568785834, 1.53303183542694, 1.84806268747056, 1.71481243835448, 1.90227115671914, 1.76310348531415, 1.6724772769001, 1.72787766697862, 1.89368390926994, 1.7061218919293, 1.75961502775183, 1.8628378349487, 2.07296070035722, 1.75994098246155, 1.63725499317946, 1.57696857072036, 2.12207341657794, 1.63485146283952, 1.73556954657032, 1.91720891290729, 2.00956407017619, 2.06698845581924, 1.66383135509066, 1.74441827802878, 1.7392031139825, 1.70749327940058, 2.00705814300582, 1.91208499530747, 1.79605624345311, 1.97547407462796, 2.01688698517598, 2.03659967436385, 1.88600197724352, 1.77326765591528, 1.78175955451462, 1.6930894233439, 1.89627221367146, 1.88536114431582, 1.61729529740982, 1.82846824893349, 1.73934958281588, 1.8141188791951, 1.81083530459924, 1.95959371057176, 1.9120513948095, 2.11629188465459, 1.5051120211405, 1.9884750474749, 1.88433239558473, 2.04648990645046, 1.82609689553373, 2.11714884139583, 1.55242410759339, 1.41629780160117, 1.88898188452451, 1.91208564244804, 1.42724216106157, 1.68458408613859, 1.70398405678678, 1.63709530713563, 1.9408484406433, 1.68797234487295, 1.78762483637458, 1.68009963823398, 1.82110309342027, 1.88389750927908, 1.71395217933729, 1.79590816755228, 1.82111458665056, 1.80652402984338, 1.74521464618905, 1.88571948982557, 2.02992404665088, 1.88880113342019, 1.77063692781072, 2.05580356493994, 1.68434520793045, 1.72888777463901, 1.85763901311538, 1.91430967241674, 2.08336807303476, 1.72436605086841, 1.56888680473694, 1.8069341987735, 1.58778892622028, 1.57870752775056, 1.6529106012221, 1.6073788529859, 1.76921687794849, 1.65193109246142, 1.74316775118622, 1.90280946441204, 1.80503069875167, 1.59558830021827, 1.91403531534441, 1.87655628902971, 1.55617372400246, 1.90359902398752, 1.73953583441482, 1.91096342234206, 1.62344879782654, 2.06065870809889, 1.58678662393161, 1.84823967305272, 1.56824258165405, 1.79555452995616, 1.7802781060334, 1.89687500940012, 1.73134740010198, 1.67567859549126, 1.4745542934194, 1.68254170904161, 1.95386809506962, 2.02397136198865, 1.82865056212005, 1.51778761376426, 1.40701173837111, 1.61540877020492, 1.80046958784183, 1.64026410995192, 1.42488532286158, 2.03221292945081, 1.61184708829679, 1.64862744262252, 1.82283286839066, 1.74435326095314, 1.86399655589329, 1.97976780869353, 1.66571091751083, 1.64104914192067, 1.43902996616783, 2.05618647672746, 1.74366678801095, 2.01268323247686, 1.86775675034666, 1.89018937969913, 1.90859394304532, 1.94301142068862, 1.847149789474306734213, 1.90335230369659, 1.59999560186314, 1.64539492481204, 1.59553695568172, 2.1058990715112, 1.78519931059512, 2.0660769509894, 1.6322852954571, 1.70250406282429, 1.58194781920062, 1.9033610213382, 1.5974104909522, 1.8211341364239, 1.58943261769573, 1.01581654913799, 1.87287202604801, 2.05177073528879, 1.50837126342364, 1.94990038852654, 1.56514448747556, 1.61680031105431, 1.78305490441818, 1.95476681472899, 1.58729840855764, 1.6715357021429, 1.98698464395255, 1.74450713846527, 1.95253314047397, 1.63009070444495, 1.59494419904925, 1.74281110057241, 2.04219808666725, 1.65601292083215, 1.92500849510815, 1.7529351212574, 1.64651317644991, 1.69963438819102, 1.86431830910475, 2.01793079951403, 1.75408350858281, 1.75298584573087, 1.77531483180288, 1.69844248130892, 1.99224243099459, 1.88694421426894, 1.87902546837135, 1.92472974853957, 2.13828596494849, 1.89804524319642, 1.89494562534244, 1.92852627515527, 1.79276970408516, 1.77946099071262, 1.77406406269067, 1.80096935405787, 1.73799310933093, 1.99301374249058, 1.85308131851319, 1.855904462466, 1.90251562821057, 1.79340095784506, 1.69051048172752, 1.86012146775696, 1.43400320128913, 2.00382878426777, 1.82989487461566, 1.82249935728805, 1.99180362002349, 2.01321881671772, 1.86229445616568, 2.0352808819345, 1.63479028890609, 1.60741473021141, 1.60470776711694, 1.69888282133067, 1.54764121750889, 1.68659545654008, 1.52072057306215, 1.74290323196414, 1.78974047887504, 1.82408526954678, 1.694422862131, 1.95457797994124, 2.03903717859932, 1.93884660810121, 1.54429945604118, 1.43791450982033, 1.94834564506793, 1.74209266887963, 1.84252388732508, 1.10066574710828, 1.73758803458635, 1.67373168400356, 1.83820164673867, 1.71884057591237, 2.02096843614129, 1.83279308688306, 1.78113831437404, 1.96006006080796, 1.98227726367144), k = 50, nu = 50, nv = 50, center = TRUE, scale = FALSE, BPPARAM = new("SerialParam", .xData = ), deferred = FALSE, fold = Inf, extra.work = 7L) 4: do.call(FUN, c(list(x = x, k = k, nu = nu, nv = nv, center = center, scale = scale, BPPARAM = BPPARAM, ...), ARGS(BSPARAM))) 5: runSVD(x, k = k, nu = nu, nv = nv, center = center, scale = scale, BPPARAM = BPPARAM, ..., BSPARAM = BSPARAMFUN(deferred = bsdeferred(BSPARAM), fold = bsfold(BSPARAM))) 6: runSVD(x, k = k, nu = nu, nv = nv, center = center, scale = scale, BPPARAM = BPPARAM, ..., BSPARAM = BSPARAMFUN(deferred = bsdeferred(BSPARAM), fold = bsfold(BSPARAM))) 7: runSVD(x, k = rank, nu = ifelse(get.pcs, rank, 0), nv = ifelse(get.rotation, rank, 0), center = center, scale = scale, ...) 8: runSVD(x, k = rank, nu = ifelse(get.pcs, rank, 0), nv = ifelse(get.rotation, rank, 0), center = center, scale = scale, ...) 9: .local(x, ...) 10: runPCA(x, rank = ncomponents, BSPARAM = BSPARAM, BPPARAM = BPPARAM) 11: runPCA(x, rank = ncomponents, BSPARAM = BSPARAM, BPPARAM = BPPARAM) 12: .calculate_pca(mat, transposed = !is.null(dimred), ...) 13: .local(x, ...) 14: calculatePCA(y, ...) 15: calculatePCA(y, ...) 16: .local(x, ...) 17: runPCA(sce) 18: runPCA(sce) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace ```
sessionInfo (before runPCA) ``` R version 4.4.1 (2024-06-14) Platform: aarch64-apple-darwin20 Running under: macOS 15.1 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0 locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 time zone: America/Halifax tzcode source: internal attached base packages: [1] stats4 stats graphics grDevices utils datasets methods base other attached packages: [1] scater_1.32.0 ggplot2_3.5.1 scuttle_1.14.0 SingleCellExperiment_1.26.0 [5] SummarizedExperiment_1.34.0 Biobase_2.64.0 GenomicRanges_1.56.1 GenomeInfoDb_1.40.1 [9] IRanges_2.38.0 S4Vectors_0.44.0 BiocGenerics_0.50.0 MatrixGenerics_1.16.0 [13] matrixStats_1.3.0 HSMMSingleCell_1.26.0 loaded via a namespace (and not attached): [1] gtable_0.3.5 beeswarm_0.4.0 ggrepel_0.9.5 lattice_0.22-6 vctrs_0.6.5 [6] tools_4.4.1 generics_0.1.3 parallel_4.4.1 tibble_3.2.1 fansi_1.0.6 [11] pkgconfig_2.0.3 BiocNeighbors_1.99.2 Matrix_1.7-0 sparseMatrixStats_1.16.0 lifecycle_1.0.4 [16] GenomeInfoDbData_1.2.12 compiler_4.4.1 munsell_0.5.1 codetools_0.2-20 vipor_0.4.7 [21] pillar_1.9.0 crayon_1.5.3 BiocParallel_1.38.0 DelayedArray_0.30.1 viridis_0.6.5 [26] abind_1.4-5 tidyselect_1.2.1 rsvd_1.0.5 BiocSingular_1.20.0 dplyr_1.1.4 [31] grid_4.4.1 colorspace_2.1-0 cli_3.6.3 SparseArray_1.6.0 magrittr_2.0.3 [36] S4Arrays_1.6.0 utf8_1.2.4 withr_3.0.0 DelayedMatrixStats_1.26.0 scales_1.3.0 [41] UCSC.utils_1.0.0 ggbeeswarm_0.7.2 XVector_0.44.0 httr_1.4.7 gridExtra_2.3 [46] ScaledMatrix_1.12.0 beachmat_2.21.6 irlba_2.3.5.1 viridisLite_0.4.2 rlang_1.1.4 [51] Rcpp_1.0.12 glue_1.7.0 jsonlite_1.8.8 R6_2.5.1 zlibbioc_1.50.0 ```
alanocallaghan commented 1 week ago

While I usually appreciate a good reprex, scrolling through the data in outlook to get to the "view on GitHub" link was a bit dizzying 🤣

Invalid permissions sounds like a security or file permissions issue. The error seems to be in irlba, can you run a basic irlba PCA without scater or biocsingular involved at all?

LTLA commented 1 week ago

Previous release version of scater with the previous devel version of beachmat, for starters. Advise updating both to the current release version.

wakelin-g commented 1 week ago

While I usually appreciate a good reprex, scrolling through the data in outlook to get to the "view on GitHub" link was a bit dizzying 🤣

Invalid permissions sounds like a security or file permissions issue. The error seems to be in irlba, can you run a basic irlba PCA without scater or biocsingular involved at all?

Hah... sorry, forgot that emails don't wrap text. And yes, versioning was the problem (sorry!) Thanks both for the quick help.

alanocallaghan commented 1 week ago

Great, thanks for the detailed report in any case