Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity - Summary of Changes in Stockholders' Equity (Details)

v3.7.0.1
Stockholders' Equity - Summary of Changes in Stockholders' Equity (Details) - USD ($)
3 Months Ended 9 Months Ended
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Equity [Abstract]        
Stockholders' equity at beginning of period     $ 28,053,104 $ 32,695,621
Net loss $ (4,560,972) $ (6,251,409) (15,551,867) (20,326,520)
Public Offering on November 9, 2015, net of issuance costs of $613,915     0 6,886,095
Stock-based compensation     3,378,991 4,676,215
Accumulated other comprehensive income     7,094
Issuance of common stock through employee stock purchase plan     44,057 0
Exercise of common stock warrants     30,950 0
Common stock issued in connection with a contractual agreement     0 55,500
Stockholders' equity at end of period $ 15,962,329 $ 23,986,911 $ 15,962,329 $ 23,986,911