ksavell / XPoSE

1 stars 0 forks source link

01_assign_metadata error #21

Closed padmashris closed 1 year ago

padmashris commented 1 year ago

image

is there something that's missing here? I don't fully understand what the function is doing

lines 62-67 from the 01_assign_metadata_make_initial_object.R file:

#order them
invisible(lapply(objects, function(name) {
        df <- get(name)  # Get the data frame from the environment
        modified_df <- sort_dataframe(df)  # Apply the function to the data frame
        assign(name, modified_df, envir = .GlobalEnv)  # Update the data frame in the environment
}))
ksavell commented 1 year ago

The intent is to apply the sort_dataframe function to all. I checked the head of each dataframe to confirm that the barcodes were in the correct order after running. It seemed to work and I could find mean sample tag read values that are now in the last panel of figure 1.

I got help with the specifics from my robot friend, so there might be a better way to do this. ;)