darogan / particlestats Goto Github PK
View Code? Open in Web Editor NEWParticleStats: Open source software for the analysis of intracellular particle motility and cytoskeletal polarity
License: GNU General Public License v3.0
ParticleStats: Open source software for the analysis of intracellular particle motility and cytoskeletal polarity
License: GNU General Public License v3.0
At the moment there are two web interfaces to ParticleStats, ParticleStats_Web.pl
and ParticleStats_WebStats.pl
. However, I couldn't find any comment on the purpose of each and they are not mentioned on the pdf manual.
Is any of them deprecated? Or any of them in a work in progress?
Not really an issue but while auditing the code and trying to make sense of the web interface, I made a lot of changes which I hope make the code more readable. It also removes a lot of unused variables, warnings about use of undef variables, etc.
Please review the commits on my clone and merge as you see fit. Would be nice if this would be done before the changes to fix issue #11 and #12 which would complicate the merge.
system()
with a list of arguments in order to collect outputThe above means that a file named foo $(do something bad).xls
will do something bad. Limited to what the user that runs the cgi script can do.
The following files are used by the web interface but are not present in the repository or any of the release tarballs:
The file ParticleStats_linRegressFit.c refered on setup.py of the python package
module1 = Extension('ParticleStats_linRegressFit',
sources = ['ParticleStats_linRegressFit.c'])
is not present on the tarball.
$ md5sum ParticleStats-0.3.tar.gz
5b22ebec256a812e237d5122127cbde8 ParticleStats-0.3.tar.gz
Make the setting of the install paths more simple for installing the web interface
Wrap ParticleStats in a Docker container to remove the need to install the 3rd party dependencies
The python packages requires a file scripts/ParticleStats_TrackCompare.py
:
scripts=[ "scripts/ParticleStats_TrackCompare.py", "scripts/ParticleStats_Compare.py", "scripts/ParticleStats_Directionality.py", "scripts/ParticleStats_Kymographs.py", "scripts/ParticleStats_ROI.py" ],
Which is not present on the package:
$ md5sum ParticleStats-0.3.tar.gz
5b22ebec256a812e237d5122127cbde8 ParticleStats-0.3.tar.gz
$ tar -tvzf ParticleStats-0.3.tar.gz | grep TrackCompare
$
or the whole history of the repository:
$ git log --all --pretty=format: --name-only --diff-filter=A | grep TrackCompare
[again no output]
Failure at the getopts stage for ParticleStats::Directinality
Because of the way the command is generated and called, the web interface fails when there's whitespace. Currently code does something like:
my $command = "python script.py -in $filename"
my $output = `$command`
The easiest way out is to simply quote $filename but that will cause problems if the filename has quotes. A good way out is to use system()
but then it doesn't capture stdout. A better way out would be to use IPC::Open2
but that complicates things. An easier way out would be too use a hardcoded filename when uploading the filename but then the output will make less sense to the user.
Colour the windmap squares by the speeds of the trails contained within
@carandraug this should help address #12 #14
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.