nsh87 / receptormarker Goto Github PK
View Code? Open in Web Editor NEWSource for 'receptormarker' package for R: antibody receptor and phenotypic marker analysis
Home Page: http://receptormarker.com
License: BSD 2-Clause "Simplified" License
Source for 'receptormarker' package for R: antibody receptor and phenotypic marker analysis
Home Page: http://receptormarker.com
License: BSD 2-Clause "Simplified" License
Already asked the developer how to get lintr
to ignore the line...now waiting for a response. There seems to be a fix on GitHub but that version won't install on R 3.2. You either have to:
Exists as of e4babee.
The pointer-effects: none
CSS in 076aad8 enables the "Save Image"
text link to work in RStudio, but removes the hover effects on the phylogram. You used that CSS because in RStudio the <div id=htmlwidgets_container>
gets put on top of the "Save Image"
link, causing the link to not work. It actually doesn't work in RStudio regardless, so maybe just take this CSS out or play with the SizingPolicy of the widget so the div doesn't lay on top of the text link in RStudio.
I've capped the site at 20 clusters, but even with 12 clusters the x-axis labels of the cluster membership plot start to overlap.
Additionally, the individual plots becomes very compressed along the x-axis.
If you have control over the number of plots per row, can you just add a check on num_clust
and if it's less than 10 then keep up to five plots per row; if it's 10-15 then limit it to 4 plots per row; and perhaps if it's 16-20 then 3 plots per row? I think doing this would take care of both the issues (the overlapping x-axis labels and the illegible graph at ~20 clusters).
I think this has something to do with my version of Perl?
> library(receptormarker)
> convergence(d, seqs_col='clone', verbose=TRUE)
Unrecognized switch: --textfile=/var/folders/w_/vqlk70xx1l954jj0qsswxsnc0000gn/T//RtmpsJBGGA/63341c83ea67/sequences-deduped-633418921ed1.txt (-h will show valid options).
Error: Convergence output not found: no convergence groups, or error.
This actually happens in R, but not running the file from my terminal. Seems to work on the site, though.
Typo in clust_boxplot()
documentation: It utlizes facet_wrap
.
When using rings=c(col='all')
then every column value gets annotated and there's a legend to explain which color corresponds to which value. If we instead annotate a column by a specific value, there's no legend: rings=c(col='some_val')
. This becomes particularly troublesome when we annotate specific values in multiple columns because then we don't know which ring corresponds to what.
See PR #68
The function is defined by
multi_clust <- function(d, krange = 2:10, iter.max = 300, runs = 10, method = "kmeans", ...)
but the ellipsis isn't included in the call to kmeans:
kmm <- stats::kmeans(d, k, iter.max = iter.max, nstart = 10)
Docs say ... Further arguments to be passed to kmeans.
This just needs to remove all incomplete cases.
Need to fix error caused by using ggplot
instead of ggplot2
in f21e609.
The purpose if this Issue is to track tests of the current dev
version of the package against the master
version.
Why? The current dev
version contains two significant changes:
multi_clust()
function to use NbClust to determine the optimal k
multiClust
object to a multiClust
S4 class
The testing will involve running the same data sets on the staging site (which has the master
branch of receptormarker installed) and a local dev version (which has the dev
branch installed) and comparing the outcome of various data sets.
Checked boxes below indicate that same result is obtained with NbClust as before, and that all the other potential issues described above have not been observed.
Estimate k (select "Replace empty cells with: 0
on the site):
index
NbClust should use ('all' or 'alllong') to try 'all' to see if it decreases memory requirements and increases performance - 84778c7...Error in multiclust[["k_best"]] : this S4 class is not subsettable..
. This was due to the clustering task on the frontend server using the old notation for the multiClust
structure. I've updated it to use multiclust@k_best
, for the new S4 class. Test again.FYI, @catterbu.
See comment on bed3b2c.
Should have documentation that tells you which methods are available and/or what are the names of the objects in the list. Hadley docs.
Rather than having the description of the class in the Return Value
section of the multi_clust()
function link to the documentation of the class there. You could also do a "see also" to the multiClust
documentation from your plotting functions then too.
See documentation for ?muscle::muscle
for an example.
So the call to kmeans
in multi_clust()
is
kmm <- stats::kmeans(d, k, iter.max = iter.max, nstart = 10)
# multi_clust() makes iter.max = 300 by default
which is all good and should work properly, but for some reason kmeans
is trying only 10 iterations:
fclust <- multi_clust(f, krange=2:20)
Warning messages:
1: did not converge in 10 iterations
2: did not converge in 10 iterations
3: did not converge in 10 iterations
4: did not converge in 10 iterations
5: did not converge in 10 iterations
6: did not converge in 10 iterations
No matter what I do to the arguments into multi_clust()
, I cannot change kmeans
from doing just 10 iterations. If I call kmeans
separately, it works fine:
# Here's me using 3 iterations instead of 10
stats::kmeans(f, centers=20, iter.max=3, nstart=10)
Warning messages:
1: did not converge in 3 iterations
2: did not converge in 3 iterations
3: did not converge in 3 iterations
4: did not converge in 3 iterations
5: did not converge in 3 iterations
6: did not converge in 3 iterations
7: did not converge in 3 iterations
8: did not converge in 3 iterations
9: did not converge in 3 iterations
10: did not converge in 3 iterations
They are both reporting optimal number of clusters as two when using the iris dataset, but this dataset is known to have three clusters.
The @external
tag doesn't exist, it should be @export
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.