PriceLab / TrenaProjectArabidopsisRoot

MIT License
0 stars 0 forks source link

data.frame rowExpansion #8

Open paul-shannon opened 5 years ago

paul-shannon commented 5 years ago

@thardy615 - Hi Tanjanay,

I got my github credentials working again, and just checked in

TrenaProjectArabidopsisRoot/explore/dataFrameRowExpansion/paulsSuggestion/rowExpansion.R

This is the same file I emailed you late yesterday. Can you push ahead with evolving the unitTests and the splitMultipleNamesIntoTheirOwnRows function, to completely (!) solve the problem of what to do when multiple orfs are on the same line of the root expression matrix?

paul-shannon commented 5 years ago

@thardy615

see this stackoverflow post

thardy615 commented 5 years ago

thank you!

On Wed, Jul 17, 2019 at 11:47 AM Paul Shannon notifications@github.com wrote:

@thardy615 https://github.com/thardy615

see this stackoverflow post https://stackoverflow.com/questions/11121385/repeat-rows-of-a-data-frame

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PriceLab/TrenaProjectArabidopsisRoot/issues/8?email_source=notifications&email_token=AMMDG7QQNYH7367GOKUBDXDP75SL3A5CNFSM4IERWCP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2GHECQ#issuecomment-512520714, or mute the thread https://github.com/notifications/unsubscribe-auth/AMMDG7VZWYB63OLKU7QT4P3P75SL3ANCNFSM4IERWCPQ .

-- Tanjanay C. Hardy Spelman College C'2020 Health Science Major LINCS Scholar

paul-shannon commented 5 years ago

@thardy615 See demo.all.rows in rowExpansion.R. Simple solution. Taking a break does wonders!

   x <- lapply(1:nrow(tbl), function(i) splitMultipleNames(tbl[i,]))
   tbl.combined <- do.call(rbind, x)
paul-shannon commented 5 years ago

@thardy615 Please write a summary of the many things going on, and the many things implied by these two lines. This will be good preparation for scaling up your functions to import an entire tissue (root, leaf, etc) of >25k gene expression data for use in trena.

I encourage you to ask questions about the puzzles you will encounter and to create a notes file with annotated examples.