Giter VIP home page Giter VIP logo

neurodebian / afni Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afni/afni

1.0 1.0 0.0 335.07 MB

Official AFNI source and documentation

Home Page: http://afni.nimh.nih.gov/afni

CMake 0.04% C 86.53% Makefile 0.56% R 1.33% C++ 0.22% M4 0.52% Shell 0.83% HTML 0.28% TeX 0.37% Fortran 0.46% SourcePawn 0.01% PostScript 0.20% Clean 0.01% Io 0.01% SAS 0.02% Assembly 0.02% Module Management System 0.02% Smalltalk 0.01% Python 7.35% MATLAB 1.23%

afni's Introduction

                              ==  ===============   === =
                       =  ================================
                  = ======= =        =  ==      ==============
                ======                             = ============ = =
            ====== =                                  = ============ =
        = =======                                        = ============
      ===========                                             ==========
      ===== =                                                 = ==========
   ===== =                                                        ========
  ======                                                            ======
 =====                                           =                  =======
 ====                                            =                    ======
 ====                        ==   ==  =  == = ==                      ======
=====                  = ======== =  ==   =                            ======
====              =  =====  ==                                         ======
===               ===== =                                               ======
===               ===                                                 =======
  =            = ==                                                 = ========
  =  =        =====                                             =============
             =  ==                                        ==  =============
             == ===                                 =   ================ =
               =====                          == ================== ==
              ==  ==== =                 =  ============ = ===  =
                   = ===== ===   ==  =============   == = =
                      = ====================   ==

NeuroDebian is a popular turnkey platform for Neuroscience, where software is integrated, tested, and delivered conveniently and reliably so you could concentrate on your research and not on "system maintenance". It provides a large collection of popular neuroscience research software for the Debian operating system as well as Ubuntu and other derivatives. Please visit our main website to discover more.

Travis tests status Docker https://www.singularity-hub.org/static/img/hosted-singularity--hub-%23e32929.svg

Related projects from the NeuroDebian authors

  • Open Brain Consent - samples and an ultimate wording for experiment participant consent forms to make open data sharing possible
  • DataLad - a data distribution and management platform, which addresses shortcomings of solutions of software/code-oriented solutions (such as NeuroDebian and pure git), when applied to data
  • ReproIn - a turnkey solution for collecting MRI data directly as BIDS DataLad datasets
  • DueCredit - Automated collection and reporting of citations for used software/methods/datasets
  • Study Forrest - a diverse and ever-expanding collection of data and studies on our favorite shrimping, cross-country running, international ping-pong champion: Forrest Gump
  • PyMVPA - a machine learning framework for the analysis of (not only) neuroimaging data
  • Discover more about these and other projects from Center for Open Neuroscience and Psychoinformatics.

afni's People

Contributors

afni-dglen avatar afni-gangc avatar afni-rickr avatar afni-rwcox avatar afni-ziad avatar afnihq avatar ccraddock avatar cesarcaballerogaudes avatar imnotamember avatar ischwabacher avatar jlisinski avatar mrneont avatar nno avatar pintohutch avatar pmolfese avatar yarikoptic avatar zsaad avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

afni's Issues

Optimize/improve packaging to make it lintian free and ideally uploadable to stock Debian

The present Debian packaging is functional, but also suboptimal. Here is what lintian the Debian package checker thinks:

% lintian -iv afni_16.2.07\~dfsg.1-1_amd64.changes
N: Using profile debian/main.
N: Setting up lab in /tmp/temp-lintian-lab-up_VqNV8nS ...
N: Unpacking packages in group afni/16.2.07~dfsg.1-1
N: ----
N: Processing changes file afni (version 16.2.07~dfsg.1-1, arch source all amd64) ...
N: ----
N: Processing source package afni (version 16.2.07~dfsg.1-1, arch source) ...
E: afni source: build-depends-on-obsolete-package build-depends: hardening-includes => use dpkg-buildflags instead
N: 
N:    The package build-depends on a package that has been superseded. If the
N:    superseded package is part of an ORed group, it should not be the first
N:    package in the group.
N:    
N:    Severity: important, Certainty: possible
N:    
N:    Check: fields, Type: binary, udeb, source
N: 
W: afni source: syntax-error-in-dep5-copyright line 386: Duplicate field copyright.
N: 
N:    The machine-readable copyright file didn't pass Debian control file
N:    syntax check.
N:    
N:    This issue may hide other issues as Lintian skips some checks on the
N:    file in this case.
N:    
N:    Refer to
N:    https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ for
N:    details.
N:    
N:    Severity: normal, Certainty: possible
N:    
N:    Check: source-copyright, Type: source
N: 
N: ----
N: Processing binary package afni-common (version 16.2.07~dfsg.1-1, arch all) ...
W: afni-common: manpage-has-errors-from-man usr/share/man/man1/afni.1.gz 28: warning: macro `Ev' not defined
N: 
N:    This man page provokes warnings or errors from man.
N:    
N:    "cannot adjust" or "can't break" are trouble with paragraph filling,
N:    usually related to long lines. Adjustment can be helped by left
N:    justifying, breaks can be helped with hyphenation, see "Manipulating
N:    Filling and Adjusting" and "Manipulating Hyphenation" in the groff
N:    manual (see info groff).
N:    
N:    "can't find numbered character" usually means latin1 etc in the input,
N:    and this warning indicates characters will be missing from the output.
N:    You can change to escapes like \[:a] described on the groff_char man
N:    page.
N:    
N:    Other warnings are often formatting typos, like missing quotes around a
N:    string argument to .IP. These are likely to result in lost or malformed
N:    output. See the groff_man (or groff_mdoc if using mdoc) man page for
N:    information on macros.
N:    
N:    This test uses man's --warnings option to enable groff warnings that
N:    catch common mistakes, such as putting . or ' characters at the start of
N:    a line when they are intended as literal text rather than groff
N:    commands. This can be fixed either by reformatting the paragraph so that
N:    these characters are not at the start of a line, or by adding a
N:    zero-width space (\&) immediately before them.
N:    
N:    At worst, warning messages can be disabled with the .warn directive, see
N:    "Debugging" in the groff manual.
N:    
N:    Lintian also stricter in regards to declaring manpage preprocessors.
N:    
N:    To test this for yourself you can use the following command:
N:     LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 \
N:            man --warnings -E UTF-8 -l -Tutf8 -Z <file> >/dev/null
N:    
N:    Refer to the groff_man(7) manual page and the groff_mdoc(7) manual page
N:    for details.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: manpages, Type: binary
N: 
W: afni-common: csh-considered-harmful usr/lib/afni/bin/1dRplot
N: 
N:    The Debian policy for scripts explicitly warns against using csh and
N:    tcsh as scripting languages.
N:    
N:    Refer to Debian Policy Manual section 10.4 (Scripts) for details.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: scripts, Type: binary
N: 
W: afni-common: unusual-interpreter usr/lib/afni/bin/1dRplot.R #!AFNI_Batch_R
N: 
N:    This package contains a script for an interpreter that is not shipped in
N:    the package and is not known to Lintian. It is possible that there is a
N:    typo or the interpreter is not executable. If not, please file a
N:    wishlist bug against lintian, so it can be added to the list of known
N:    interpreters.
N:    
N:    Severity: normal, Certainty: possible
N:    
N:    Check: scripts, Type: binary
N: 
W: afni-common: unusual-interpreter usr/lib/afni/bin/3dAOV.R #!afni_run_R
W: afni-common: unusual-interpreter usr/lib/afni/bin/3dGC.R #!AFNI_Batch_R
W: afni-common: unusual-interpreter ... use --no-tag-display-limit to see all (or pipe to a file/program)
W: afni-common: csh-considered-harmful usr/lib/afni/bin/3dLME
W: afni-common: csh-considered-harmful usr/lib/afni/bin/3dMEMA
W: afni-common: csh-considered-harmful ... use --no-tag-display-limit to see all (or pipe to a file/program)
W: afni-common: executable-not-elf-or-script usr/lib/afni/bin/demo.mobile.niml.do
N: 
N:    This executable file is not an ELF format binary, and does not start
N:    with the #! sequence that marks interpreted scripts. It might be a sh
N:    script that fails to name /bin/sh as its shell, or it may be incorrectly
N:    marked as executable. Sometimes upstream files developed on Windows are
N:    marked unnecessarily as executable on other systems.
N:    
N:    If you are using debhelper to build your package, running dh_fixperms
N:    will often correct this problem for you.
N:    
N:    Refer to Debian Policy Manual section 10.4 (Scripts) for details.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: scripts, Type: binary
N: 
W: afni-common: executable-not-elf-or-script usr/lib/afni/bin/demo.fixed.niml.do
N: ----
N: Processing binary package afni-dev (version 16.2.07~dfsg.1-1, arch amd64) ...
N: ----
N: Processing binary package afni-dbg (version 16.2.07~dfsg.1-1, arch amd64) ...
N: ----
N: Processing binary package afni (version 16.2.07~dfsg.1-1, arch amd64) ...
N: 5 tags overridden (2 errors, 3 warnings)

afni-atlases is not installable on elderly ubuntus due to use of xz

thanks to dylan for report:

Hey Neurodebian folks. Noticed the following error when upgrading the
afni-atlases on trusty thought you'd like to know!

dpkg-deb: error: archive                                                                                        
'/var/cache/apt/archives/afni-atlases_0.20180120-1_all.deb' has premature                                       
member 'control.tar.xz' before 'control.tar.gz', giving up                                                      
dpkg: error processing archive                                                                                  
/var/cache/apt/archives/afni-atlases_0.20180120-1_all.deb (--unpack):                                           

From what I've read it appears to be something happening with recent builds
using .xz compression which is not supported by the dpkg in Trusty and Precise
(https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1730627) and (see:
sbt/sbt-native-packager#1067). I also have a Xenial
VM and it installed fine on there so can confirm it's definitely a trusty &
precise issue.

Technically I guess this isn't exactly neurodebian's problem but it also seems
easy to fix when making packages for trusty and precise until their dpkg gets
.xz support if that ever happens.

some python scripts with shebangs and __main__ handling do not have executable permissions

hopa:/usr/lib/afni/bin
$> grep -l -e '#!' * | xargs grep -l -e '__main__' | xargs ls -l | grep -v -e '-rwx' 
-rw-r--r-- 1 root root 465159 Aug 15 10:16 db_mod.py
-rw-r--r-- 1 root root  56122 Aug 15 10:16 gui_uber_align_test.py
-rw-r--r-- 1 root root  32505 Aug 15 10:16 gui_uber_skel.py
-rw-r--r-- 1 root root 126195 Aug 15 10:16 gui_uber_subj.py
-rw-r--r-- 1 root root  48232 Aug 15 10:16 gui_uber_ttest.py
-rw-r--r-- 1 root root 116967 Aug 15 10:16 lib_afni1D.py
-rw-r--r-- 1 root root  67651 Aug 15 10:16 lib_qt_gui.py
-rw-r--r-- 1 root root  17868 Aug 15 10:16 lib_realtime.py
-rw-r--r-- 1 root root  42421 Aug 15 10:16 lib_subjects.py
-rw-r--r-- 1 root root  27756 Aug 15 10:16 lib_system_check.py
-rw-r--r-- 1 root root  10561 Aug 15 10:16 lib_textdata.py
-rw-r--r-- 1 root root  21642 Aug 15 10:16 option_list.py
-rw-r--r-- 1 root root  45046 Aug 15 10:16 ui_xmat.py

note: there are few more which do not have __main__ but seems to have shebangs and probably shouldn't be executable:

$> grep -l -e '#!/' * | xargs grep -L -e '__main__' | xargs ls -l | grep -v -e '-rwx'
-rw-r--r-- 1 root root   39034 Aug 15 10:16 afni_base.py
-rw-r--r-- 1 root root   27375 Aug 15 10:16 afni_xmat.py
-rw-r--r-- 1 root root   12684 Aug 15 10:16 ask_me.py
-rw-r--r-- 1 root root   48913 Aug 15 10:16 gui_xmat.py
-rw-r--r-- 1 root root   58771 Aug 15 10:16 lib_fat_funcs.py
-rw-r--r-- 1 root root   11671 Aug 15 10:16 lib_matplot.py
-rw-r--r-- 1 root root    3929 Aug 15 10:16 lib_RR_plot.py
-rw-r--r-- 1 root root   30104 Aug 15 10:16 lib_surf_clustsim.py
-rw-r--r-- 1 root root   33197 Aug 15 10:16 lib_timing.py
-rw-r--r-- 1 root root   31925 Aug 15 10:16 lib_uber_align.py
-rw-r--r-- 1 root root   23474 Aug 15 10:16 lib_uber_skel.py
-rw-r--r-- 1 root root   66728 Aug 15 10:16 lib_uber_subject.py
-rw-r--r-- 1 root root   23361 Aug 15 10:16 lib_uber_ttest.py
-rw-r--r-- 1 root root    4517 Aug 15 10:16 lib_wx.py
-rw-r--r-- 1 root root    8004 Aug 15 10:16 module_test_lib.py

lib_vars_object.py is not installed in the package making many python scripts disfunctional

As reported by Jeffrey Mark Siskind (thanks)

$> align_epi_anat.py
Traceback (most recent call last):
  File "/usr/lib/afni/bin/align_epi_anat.py", line 21, in <module>
    from db_mod import *
  File "/usr/lib/afni/bin/db_mod.py", line 13, in <module>
    import lib_vars_object as VO
ImportError: No module named lib_vars_object

resolving this issue should get accompanied with some basic at least smoke test to verify that python scripts are "runnable"

More recent version

Hello, is it possible to package a more recent version of AFNI? I am more than happy to help with this, although I have almost no experience making debian packages.

64bit build fails on precise (nd12.04)

as travis build in #5 PR shows (https://travis-ci.org/neurodebian/afni/builds/155672447) and also locally:

/xutil.c.o CMakeFiles/mri.dir/LiteClue.c.o CMakeFiles/mri.dir/thd_xwebber.c.o -lXt -lvolpack -lnetcdf -lf2c gifti/libgiftiio.so.0.0.0 -lnifticdf -lniftiio -lm -lz -lXm -lSM -lICE -lX11 -lXext coxplot/libcoxplot.a -lXmHTML -lexpat -lniftiio -lznz -lm -lz -Wl,-rpath,"/build/afni-16.2.07~dfsg.1/build-x86_64-linux-gnu/src/gifti:" 
/usr/bin/ld: coxplot/libcoxplot.a(srface.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
coxplot/libcoxplot.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [src/libmri.so] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.