-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualization #2
Comments
Hi Alfaro, Thank you for trying the package out! At the moment, the function requires the parameter I will update the function so that you don't need to supply any marker column names, which should allow you to just draw network plot coloured by the cell populations. |
Also another thing, make sure you put a quote around "PopName" for the |
Hi , DrawNetworkPlot(dat = data.clust,
Calculating edges Any idea how i can fix it ? Best , |
Hmm I've never seen that error before. Could it be that there are duplicated meta-cluster ID in the |
Hello, 2 When I plot the networks with the DrawNetworkPlot, I don't understand why there is always an NA cluster. 3 for the TimeseriesHeatmap, I don't understand why, it doesn't put the timepoints in the wright order Thanks in advance for your response. |
Hi there, Thank you for your interest in TrackSOM! 1 In the WNV example that you used,how did you get the population clusters? I basically first worked out which cluster represent which population, created a csv file which. maps the clusters to populations, something like this: 2 When I plot the networks with the DrawNetworkPlot, I don't understand why there is always an NA cluster. 3 for the TimeseriesHeatmap, I don't understand why, it doesn't put the timepoints in the wright order |
Hello,
Thanks in advance |
Hi there,
Can you share what the error message you get when you try to use fcs files? There has been quite some major changes done to FlowSOM recently and that might have caused some problem with how TrackSOM parse the fcs file.
May I ask how did you run FlowSOM/Phenograph? Did you cluster all the timepoints in one go? or did you cluster one timepoint independent of each other? While TrackSOM does use FlowSOM under the bonnet, it is operates quite differently. With TrackSOM, the SOM grid is carried over from one time-point to another, so that can affect how the subsequent clustering step looks. Did you run TrackSOM with merging of metaclusters allowed or disallowed? If the latter, when a metacluster contains SOM nodes which were previously clustered separatedly in previous timepoint, but are now clustered together,TrackSOM will force them to be separated. |
Thank you a lot for your rapid response. > Can you share what the error message you get when you try to use fcs files? > May I ask how did you run FlowSOM/Phenograph? Did you cluster all the timepoints in one go? or did you cluster one timepoint independent of each other? for FlowSOM and Phenorgraph clustering, i cluster all the timepoints in one go. > Did you run TrackSOM with merging of metaclusters allowed or disallowed? |
Thanks for sharing. On the fcs file error, the code:
basically run data.table's For fcs files, you need to simply just store the location of the fcs files in a vector and feed it to TrackSOM. So something like:
Then feed the vector to TrackSOM. On the clustering result, I'm gonna have to think it through a bit more. TrackSOM operates differently in that it runs the hierarchical clustering a time-point at a time, on a SOM grid which intial shape, was based on the shape of the SOM grid obtained from the preceding time-point. One can think of it as building the clusters iteratively, a time-point at a time. Whereas the way you ran FlowSOM/phenograph, all the time-points were processed altogether in one go. From this alone, I can see how the clustering result will be different. |
>For fcs files, you need to simply just store the location of the fcs files in a vector and feed it to TrackSOM. So something like Thanks a lot |
Oh I see what you mean. One way to do this is to convert the fcs files into one big data.table object, attach the clustering details emitted by To convert fcs files to data.table, you can use Spectre package's
|
Many thanks for you help @ghar1821 |
I generally would concatenate the biological replicates for a time-point into one fcs file, unless there is a reason why it is not ok to mix the cells from different replicates into one metacluster/SOM node, e.g., if there is a significant difference between them driven by batch effect. One important note, if there are differences in your samples driven by batch effect, I strongly recommend running batch effect removal tools first to remove/minimise the differences across batches. |
Hi ,
I would like your help about the visualization.:
I’m currently trying your package on the dataset WNV that you provided and Iwould like to reproduce the kind of figure you did on your paper ( Figure 5 B).
I’m talking about the DrawNetworkPlot based on the Meta-cluster-phenotype-mapping.
I have the data.clust table and the mapping table with the column PopName inside them.
I tried the code below:
DrawNetworkPlot(dat = data.clust,
timepoint.col = "timepoint",
timepoints = c('D0', 'D1', 'D2', 'D3', 'D4' , 'D5' , 'D6','D7'),
cluster.col = 'TrackSOM_metacluster_lineage_tracking',
mapping = mapping,
population.col = PopName)
But after some step it stop with an error:
Calculating edges
Computing node details
Calculating marker's average per node
Error in gmean(PopName) : mean is not meaningful for factors.
Do you have an idea of what's is going wrong ?
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: