Research Agreements (Details) | 3 Months Ended | 9 Months Ended | | 1 Months Ended | | 3 Months Ended | 9 Months Ended | 1 Months Ended | 3 Months Ended | 9 Months Ended | 3 Months Ended | 9 Months Ended | 3 Months Ended | 9 Months Ended | 1 Months Ended | 9 Months Ended | 1 Months Ended | 9 Months Ended | 0 Months Ended | | 9 Months Ended | | 1 Months Ended | | 9 Months Ended |
Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Feb. 28, 2013 | Feb. 28, 2013 | Feb. 28, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2012 | Dec. 31, 2011 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2013 | Feb. 28, 2013 | Feb. 28, 2013 | Dec. 31, 2011 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Jun. 30, 2012 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | 17-May-11 | 17-May-11 | Mar. 29, 2011 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Feb. 28, 2013 | Feb. 28, 2013 | Sep. 30, 2013 | Sep. 30, 2013 | Sep. 30, 2013 |
USD ($) | USD ($) | USD ($) | USD ($) | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement | Clinical Trial Services Agreement |
| | | | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-SC Phase 3 Extension Clinical Study | Pass-through costs | Pass-through costs | Pass-through costs | Pass-through costs | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | First Amendment | First Amendment | First Amendment | First Amendment | First Amendment | First Amendment | First Amendment | Second Amendment | Second Amendment | Second Amendment | Second Amendment | Second Amendment | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Stock Issuance Agreement | Letter of Intent | Letter of Intent |
| | | | Maximum | Maximum | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | USD ($) | USD ($) | USD ($) | USD ($) | item | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Per patient costs for enrolled patients | Nordic | Nordic | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-SC Phase 3 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-TD Phase 2 Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study | BA058-SC Phase 3 Extension Clinical Study |
| | | | USD ($) | EUR (€) | USD ($) | USD ($) | Maximum | Maximum | Series A-6 | USD ($) | | | | | | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | USD ($) | Maximum | Maximum | item | United States | United States | United States | India | India | India | item | USD ($) | EUR (€) | Maximum | Maximum | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic | Nordic |
| | | | item | | | | USD ($) | EUR (€) | Maximum | | | | | | | | | | | | | | | | | USD ($) | EUR (€) | | item | Maximum | Maximum | item | Maximum | Maximum | | | | USD ($) | EUR (€) | Series A-5 | Series A-5 | Series A-5 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | Series A-6 | USD ($) | EUR (€) |
| | | | | | | | | | USD ($) | | | | | | | | | | | | | | | | | | | | | USD ($) | EUR (€) | | USD ($) | EUR (€) | | | | | | USD ($) | Former Operating Company | Former Operating Company | USD ($) | Maximum | Maximum | Minimum | USD ($) | Minimum | USD ($) | Maximum | Maximum | Minimum | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USD ($) | EUR (€) | | USD ($) | EUR (€) | USD ($) | | USD ($) | | USD ($) | EUR (€) | USD ($) | | |
Research Agreements | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Number of countries where study was to be conducted | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 10 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 12 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Number of additional countries where study will be conducted | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 2 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Number of additional study sites | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 5 | ' | ' | 15 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Final payments, number of euro-denominated installments | ' | ' | ' | ' | 2 | 2 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Final payments, number of U.S dollar-denominated installments | ' | ' | ' | ' | 2 | 2 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Amount of euro-denominated payments required over the course of Clinical Study | ' | ' | ' | ' | $55,700,000 | € 41,200,000 | ' | ' | $4,900,000 | € 3,600,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | $6,100,000 | € 4,500,000 | ' | ' | $1,600,000 | € 1,200,000 | ' | $971,407 | € 717,700 | ' | ' | ' | $5,000,000 | € 3,700,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Amount of U.S. dollar-denominated payments required over the course of Clinical Study | ' | ' | ' | ' | 3,200,000 | ' | ' | ' | 257,853 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 579,495 | ' | ' | ' | 143,369 | ' | ' | 289,663 | ' | ' | ' | ' | 205,540 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Value of shares agreed to be purchased | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 371,864 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Purchase price per share of convertible preferred stock (in dollars per share) | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | $8.14 | ' | ' | ' | ' | $8.14 | ' | $8.14 | ' | ' | ' | $8.14 | ' | ' |
Shares sold | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 64,430 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Proceeds from issuance of shares | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 525,154 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Number of shares exchanged in the Merger | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 6,443 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Aggregate value of quarterly stock dividends, payable in shares | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 2,900,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 49,800,000 | 36,800,000 | ' | ' | ' | ' | 6,100,000 | 4,500,000 | ' | ' | ' |
Aggregate U.S. dollar value of quarterly stock dividends, payable in shares | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 300,000 | ' | ' | ' | ' |
Number of shares due to the counter party | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 405,909 | ' | ' | ' | 32,215 | ' | 19,329 | ' | ' | ' | ' | ' |
Number of shares due to the counter party after conversion of stock | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 4,059,090 | ' | ' | ' | 322,150 | ' | 193,290 | ' | ' | ' | ' | ' |
Fair value of liability | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 19,700,000 | ' | ' | ' | 1,600,000 | ' | 900,000 | ' | ' | ' | ' | ' |
Amount reflected in accrued expenses and other current liabilities resulting from services payable in cash | ' | ' | ' | ' | ' | ' | 13,100,000 | 500,000 | ' | ' | ' | 700,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Amounts reflected in accrued expenses and other current liabilities resulting from services payable in stock | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 4,500,000 | ' | ' | ' | 100,000 | ' | 200,000 | ' | ' | ' | ' | ' |
Amount of initial payments for Euro-denominated installments | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 1,100,000 | 806,468 |
Period for which research and development expense is recognized | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | '20 months | ' | ' | ' | '9 months | ' | ' | '9 months | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Research and development expense | 15,543,000 | 14,173,000 | 49,070,000 | 38,539,000 | ' | ' | ' | ' | ' | ' | ' | ' | 1,300,000 | 500,000 | 3,300,000 | 5,400,000 | ' | 7,600,000 | 8,500,000 | 25,500,000 | 20,300,000 | 600,000 | 100,000 | 4,100,000 | 100,000 | 1,300,000 | 2,600,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Reduction in amount of euro-denominated payments required over the course of clinical study | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | 16,162 | 11,941 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |
Research and development expense related to costs incurred for preparatory and other start-up costs | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | $900,000 | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' | ' |